Skip to content

Commit 51ee340

Browse files
committed
Add inheritance of prepare to maintain cache
1 parent 250c840 commit 51ee340

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

.github/workflows/verify.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ jobs:
105105
runs-on: ubuntu-latest
106106
name: Check commit
107107
needs:
108+
- prepare
108109
- ruff
109110
- shellcheck
110111
- dependencies_check
@@ -146,7 +147,9 @@ jobs:
146147
prepare-test-cache:
147148
runs-on: ubuntu-latest
148149
name: Create pytest cache for Python ${{ matrix.python-version }}
149-
needs: commitcheck
150+
needs:
151+
- prepare
152+
- commitcheck
150153
strategy:
151154
matrix:
152155
python-version: ["3.13"]
@@ -179,7 +182,9 @@ jobs:
179182
pytest:
180183
runs-on: ubuntu-latest
181184
name: Run pytest using Python ${{ matrix.python-version }}
182-
needs: prepare-test-cache
185+
needs:
186+
- prepare
187+
- prepare-test-cache
183188
strategy:
184189
matrix:
185190
python-version: ["3.13"]
@@ -218,7 +223,9 @@ jobs:
218223
mypy:
219224
runs-on: ubuntu-latest
220225
name: Run mypy
221-
needs: pytest
226+
needs:
227+
- prepare
228+
- pytest
222229
steps:
223230
- name: Check out committed code
224231
uses: actions/checkout@v4
@@ -274,7 +281,9 @@ jobs:
274281
coverage:
275282
name: Process test coverage
276283
runs-on: ubuntu-latest
277-
needs: pytest
284+
needs:
285+
- prepare
286+
- pytest
278287
steps:
279288
- name: Check out committed code
280289
uses: actions/checkout@v4
@@ -354,7 +363,9 @@ jobs:
354363
complexity:
355364
name: Process test complexity
356365
runs-on: ubuntu-latest
357-
needs: coverage
366+
needs:
367+
- prepare
368+
- coverage
358369
steps:
359370
- name: Check out committed code
360371
uses: actions/checkout@v4

0 commit comments

Comments
 (0)