Skip to content

Commit 0e1f0d5

Browse files
authored
Don't prune uv cache in CI (#3271)
1 parent 3a576d1 commit 0e1f0d5

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ jobs:
160160
- uses: astral-sh/setup-uv@v5
161161
with:
162162
enable-cache: true
163+
prune-cache: false
163164

164165
- uses: denoland/setup-deno@v2
165166
with:
@@ -174,7 +175,7 @@ jobs:
174175
uses: actions/cache@v4
175176
with:
176177
path: ~/.cache/huggingface
177-
key: hf-${{ runner.os }}-${{ hashFiles('**/pyproject.toml') }}
178+
key: hf-${{ runner.os }}-${{ hashFiles('**/uv.lock') }}
178179
restore-keys: |
179180
hf-${{ runner.os }}-
180181
@@ -207,6 +208,7 @@ jobs:
207208
- uses: astral-sh/setup-uv@v5
208209
with:
209210
enable-cache: true
211+
prune-cache: false
210212

211213
- uses: denoland/setup-deno@v2
212214
with:
@@ -220,7 +222,7 @@ jobs:
220222
uses: actions/cache@v4
221223
with:
222224
path: ~/.cache/huggingface
223-
key: hf-${{ runner.os }}-${{ hashFiles('**/pyproject.toml') }}
225+
key: hf-${{ runner.os }}-${{ hashFiles('**/uv.lock') }}
224226
restore-keys: |
225227
hf-${{ runner.os }}-
226228
@@ -256,12 +258,13 @@ jobs:
256258
- uses: astral-sh/setup-uv@v5
257259
with:
258260
enable-cache: true
261+
prune-cache: false
259262

260263
- name: cache HuggingFace models
261264
uses: actions/cache@v4
262265
with:
263266
path: ~/.cache/huggingface
264-
key: hf-${{ runner.os }}-${{ hashFiles('**/pyproject.toml') }}
267+
key: hf-${{ runner.os }}-${{ hashFiles('**/uv.lock') }}
265268
restore-keys: |
266269
hf-${{ runner.os }}-
267270

0 commit comments

Comments
 (0)