Skip to content

Commit aa24fc3

Browse files
committed
break cache keys across lines for readability
1 parent a8365a7 commit aa24fc3

File tree

1 file changed

+23
-5
lines changed

1 file changed

+23
-5
lines changed

.github/workflows/python-checks.yml

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,12 @@ jobs:
7777
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306
7878
with:
7979
path: .pytest_cache
80-
key: pytest-${{ matrix.python-version }}-${{ matrix.os }}-${{ matrix.resolution }}-${{ hashFiles('pyproject.toml') }}
80+
key: >-
81+
pytest
82+
-${{ matrix.python-version }}
83+
-${{ matrix.os }}
84+
-${{ matrix.resolution }}
85+
-${{ hashFiles('pyproject.toml') }}
8186
8287
- env:
8388
COVERAGE_FILE: ".coverage.${{ matrix.os }}.${{ matrix.python-version }}.${{ matrix.resolution }}"
@@ -194,7 +199,13 @@ jobs:
194199
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306
195200
with:
196201
path: .pytest_cache
197-
key: pytest-${{ hashFiles('pyproject.toml') }}-${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.resolution }}-${{ matrix.extra }}
202+
key: >-
203+
pytest
204+
-${{ hashFiles('pyproject.toml') }}
205+
-${{ matrix.os }}
206+
-${{ matrix.python-version }}
207+
-${{ matrix.resolution }}
208+
-${{ matrix.extra }}
198209
199210
- run: uv run pytest test/test_${{ matrix.extra }}
200211

@@ -230,7 +241,9 @@ jobs:
230241
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306
231242
with:
232243
path: .ruff_cache
233-
key: ruff-${{ hashFiles('pyproject.toml') }}
244+
key: >-
245+
ruff
246+
-${{ hashFiles('pyproject.toml') }}
234247
235248
- id: run-ruff
236249
run: >-
@@ -275,7 +288,9 @@ jobs:
275288
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306
276289
with:
277290
path: .ruff_cache
278-
key: ruff-${{ hashFiles('pyproject.toml') }}
291+
key: >-
292+
ruff
293+
-${{ hashFiles('pyproject.toml') }}
279294
280295
- id: run-ruff-sarif
281296
run: >-
@@ -434,7 +449,10 @@ jobs:
434449
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306
435450
with:
436451
path: .pre-commit-cache
437-
key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}-${{ hashFiles('pyproject.toml') }}
452+
key: >-
453+
pre-commit
454+
-${{ hashFiles('.pre-commit-config.yaml') }}
455+
-${{ hashFiles('pyproject.toml') }}
438456
439457
- env:
440458
PRE_COMMIT_HOME: .pre-commit-cache

0 commit comments

Comments
 (0)