Skip to content

Commit 4e62b4c

Browse files
authored
CI: exclude linting dependencies from the unittest environment. (#8861)
* Remove redundant tox install step. * Clone primer packages if not found in projects-cache (created on main branch).
1 parent c4281bc commit 4e62b4c

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.github/workflows/checks.yaml

+2-3
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ jobs:
6363
python -m pip install -U pip setuptools wheel
6464
pip install -U -r requirements_test.txt
6565
pip install -U -r doc/requirements.txt
66+
pip install pre-commit
6667
- name: Generate pre-commit restore key
6768
id: generate-pre-commit-key
6869
run: >-
@@ -173,11 +174,9 @@ jobs:
173174
key:
174175
${{ runner.os }}-${{ steps.python.outputs.python-version }}-${{
175176
needs.prepare-base.outputs.python-key }}
176-
- name: Install tox
177-
run: |
178-
pip install -U tox
179177
- name: Run checks on documentation code examples
180178
run: |
179+
. venv/bin/activate
181180
tox -e test_doc
182181
- name: Check documentation build and links
183182
run: |

.github/workflows/primer_run_pr.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,11 @@ jobs:
140140
key: >-
141141
${{ runner.os }}-${{ matrix.python-version }}-${{
142142
steps.commitstring.outputs.commitstring }}-primer
143+
- name: Regenerate cache
144+
if: steps.cache-projects.outputs.cache-hit != 'true'
145+
run: |
146+
. venv/bin/activate
147+
python tests/primer/__main__.py prepare --clone
143148
- name: Check cache
144149
run: |
145150
. venv/bin/activate

requirements_test.txt

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
-r requirements_test_pre_commit.txt
21
-r requirements_test_min.txt
32
coverage~=7.2
43
tbump~=6.10.0

0 commit comments

Comments
 (0)