Skip to content

Commit 81e49b4

Browse files
committed
Use uv action's builtin CI cache with invalidation
1 parent 91f3633 commit 81e49b4

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

.github/workflows/docker-image.yml

+2-12
Original file line numberDiff line numberDiff line change
@@ -45,24 +45,14 @@ jobs:
4545
uses: astral-sh/setup-uv@v5
4646
with:
4747
version: "0.6.2"
48-
- name: restore uv cache
49-
uses: actions/cache/restore@v4
50-
id: cache-uv-restore
51-
with:
52-
path: ~/.cache/uv
53-
key: uv
48+
enable-cache: true
49+
cache-dependency-glob: "uv.lock"
5450
- name: install pip dependencies with uv
5551
run: >
5652
uv sync --locked --dev
5753
# && uv pip install . deps/wtforms-widgets
5854
&& uv pip list
5955
id: pip-install
60-
- name: save uv cache
61-
uses: actions/cache/save@v4
62-
id: cache-uv-save
63-
with:
64-
path: ~/.cache/uv
65-
key: uv
6656
# now come the tests
6757
- name: Execute ruff
6858
run: uv run ruff check --output-format=github .

0 commit comments

Comments
 (0)