Skip to content

Commit 5fce790

Browse files
[ci] Install pylint before every test (#10388) (#10389)
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
1 parent f798a4a commit 5fce790

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

.github/workflows/checks.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ jobs:
119119
- name: Run pylint checks
120120
run: |
121121
. venv/bin/activate
122-
pip install .
122+
pip install . --no-deps
123123
pip list | grep 'astroid\|pylint'
124124
pre-commit run --hook-stage manual pylint-with-spelling --all-files
125125
@@ -149,6 +149,7 @@ jobs:
149149
- name: Run spelling checks
150150
run: |
151151
. venv/bin/activate
152+
pip install . --no-deps
152153
pytest tests/ -k unittest_spelling
153154
154155
documentation:

.github/workflows/primer-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,5 +94,5 @@ jobs:
9494
- name: Run pytest
9595
run: |
9696
. venv/bin/activate
97-
pip install .
97+
pip install . --no-deps
9898
pytest -m primer_stdlib --primer-stdlib -n auto -vv

.github/workflows/primer_run_main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ jobs:
113113
- name: Run pylint primer
114114
run: |
115115
. venv/bin/activate
116-
pip install .
116+
pip install . --no-deps
117117
python tests/primer/__main__.py run --type=main --batches=${{ matrix.batches }} --batchIdx=${{ matrix.batchIdx }} 2>warnings.txt
118118
- name: Echo warnings
119119
if: success() || failure()

.github/workflows/primer_run_pr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ jobs:
187187
- name: Run pylint primer
188188
run: |
189189
. venv/bin/activate
190-
pip install .
190+
pip install . --no-deps
191191
python tests/primer/__main__.py run --type=pr --batches=${{ matrix.batches }} --batchIdx=${{ matrix.batchIdx }} 2>warnings.txt
192192
- name: Echo warnings
193193
if: success() || failure()

.github/workflows/tests.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ jobs:
6868
- name: Run pytest
6969
run: |
7070
. venv/bin/activate
71+
pip install . --no-deps
7172
pip list | grep 'astroid\|pylint'
7273
python -m pytest --durations=10 --benchmark-disable --cov --cov-report= tests/
7374
- name: Run functional tests with minimal messages config
@@ -149,7 +150,7 @@ jobs:
149150
run: |
150151
. venv/bin/activate
151152
pip install pygal
152-
pip install .
153+
pip install . --no-deps
153154
pip list | grep 'astroid\|pylint'
154155
pytest --exitfirst \
155156
--benchmark-only \
@@ -215,6 +216,7 @@ jobs:
215216
- name: Run pytest
216217
run: |
217218
. venv\\Scripts\\activate
219+
pip install . --no-deps
218220
pip list | grep 'astroid\|pylint'
219221
python -m pytest --durations=10 --benchmark-disable tests/
220222

0 commit comments

Comments
 (0)