Skip to content

Commit 544a8f1

Browse files
authored
[ci] Install pylint before every test (#10388)
1 parent 3356e5e commit 544a8f1

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
@@ -118,7 +118,7 @@ jobs:
118118
- name: Run pylint checks
119119
run: |
120120
. venv/bin/activate
121-
pip install .
121+
pip install . --no-deps
122122
pip list | grep 'astroid\|pylint'
123123
pre-commit run --hook-stage manual pylint-with-spelling --all-files
124124
@@ -148,6 +148,7 @@ jobs:
148148
- name: Run spelling checks
149149
run: |
150150
. venv/bin/activate
151+
pip install . --no-deps
151152
pytest tests/ -k unittest_spelling
152153
153154
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
@@ -78,6 +78,7 @@ jobs:
7878
- name: Run pytest
7979
run: |
8080
. venv/bin/activate
81+
pip install . --no-deps
8182
pip list | grep 'astroid\|pylint'
8283
python -m pytest --durations=10 --benchmark-disable --cov --cov-report= tests/
8384
- name: Run functional tests with minimal messages config
@@ -160,7 +161,7 @@ jobs:
160161
run: |
161162
. venv/bin/activate
162163
pip install pygal
163-
pip install .
164+
pip install . --no-deps
164165
pip list | grep 'astroid\|pylint'
165166
pytest --exitfirst \
166167
--benchmark-only \
@@ -226,5 +227,6 @@ jobs:
226227
- name: Run pytest
227228
run: |
228229
. venv\\Scripts\\activate
230+
pip install . --no-deps
229231
pip list | grep 'astroid\|pylint'
230232
python -m pytest --durations=10 --benchmark-disable tests/

0 commit comments

Comments
 (0)