From cbec1ab8469ecdffd5664997ac47247bed098514 Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Sat, 17 May 2025 06:36:11 +0200 Subject: [PATCH] [ci] Install pylint before every test (#10388) --- .github/workflows/checks.yaml | 3 ++- .github/workflows/primer-test.yaml | 2 +- .github/workflows/primer_run_main.yaml | 2 +- .github/workflows/primer_run_pr.yaml | 2 +- .github/workflows/tests.yaml | 4 +++- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/checks.yaml b/.github/workflows/checks.yaml index 0b3ac72fc6..a5704e6a11 100644 --- a/.github/workflows/checks.yaml +++ b/.github/workflows/checks.yaml @@ -119,7 +119,7 @@ jobs: - name: Run pylint checks run: | . venv/bin/activate - pip install . + pip install . --no-deps pip list | grep 'astroid\|pylint' pre-commit run --hook-stage manual pylint-with-spelling --all-files @@ -149,6 +149,7 @@ jobs: - name: Run spelling checks run: | . venv/bin/activate + pip install . --no-deps pytest tests/ -k unittest_spelling documentation: diff --git a/.github/workflows/primer-test.yaml b/.github/workflows/primer-test.yaml index e19cb28fb9..c7cbddc868 100644 --- a/.github/workflows/primer-test.yaml +++ b/.github/workflows/primer-test.yaml @@ -94,5 +94,5 @@ jobs: - name: Run pytest run: | . venv/bin/activate - pip install . + pip install . --no-deps pytest -m primer_stdlib --primer-stdlib -n auto -vv diff --git a/.github/workflows/primer_run_main.yaml b/.github/workflows/primer_run_main.yaml index 56ba1cfa2d..3789399ac6 100644 --- a/.github/workflows/primer_run_main.yaml +++ b/.github/workflows/primer_run_main.yaml @@ -113,7 +113,7 @@ jobs: - name: Run pylint primer run: | . venv/bin/activate - pip install . + pip install . --no-deps python tests/primer/__main__.py run --type=main --batches=${{ matrix.batches }} --batchIdx=${{ matrix.batchIdx }} 2>warnings.txt - name: Echo warnings if: success() || failure() diff --git a/.github/workflows/primer_run_pr.yaml b/.github/workflows/primer_run_pr.yaml index dfe7398546..024ec1695c 100644 --- a/.github/workflows/primer_run_pr.yaml +++ b/.github/workflows/primer_run_pr.yaml @@ -187,7 +187,7 @@ jobs: - name: Run pylint primer run: | . venv/bin/activate - pip install . + pip install . --no-deps python tests/primer/__main__.py run --type=pr --batches=${{ matrix.batches }} --batchIdx=${{ matrix.batchIdx }} 2>warnings.txt - name: Echo warnings if: success() || failure() diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index fce0a624c2..9f0bae3efb 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -68,6 +68,7 @@ jobs: - name: Run pytest run: | . venv/bin/activate + pip install . --no-deps pip list | grep 'astroid\|pylint' python -m pytest --durations=10 --benchmark-disable --cov --cov-report= tests/ - name: Run functional tests with minimal messages config @@ -149,7 +150,7 @@ jobs: run: | . venv/bin/activate pip install pygal - pip install . + pip install . --no-deps pip list | grep 'astroid\|pylint' pytest --exitfirst \ --benchmark-only \ @@ -215,6 +216,7 @@ jobs: - name: Run pytest run: | . venv\\Scripts\\activate + pip install . --no-deps pip list | grep 'astroid\|pylint' python -m pytest --durations=10 --benchmark-disable tests/