Skip to content

Commit 4928f19

Browse files
committed
Avoid cache for uv requirements - it doesn't make the build faster
1 parent 19aef0c commit 4928f19

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,8 @@ jobs:
2929
with:
3030
python-version: ${{ matrix.python-version }}
3131

32-
- uses: actions/cache@v4
33-
env:
34-
UV_CACHE_DIR: ~/.cache/uv
35-
with:
36-
path: "${{ env.UV_CACHE_DIR }}"
37-
key: ${{ runner.os }}-uv-${{ hashFiles('pyproject.toml') }}
38-
restore-keys: |
39-
${{ runner.os }}-uv-
40-
32+
# We do not use the cache action as uv is faster than the cache action.
4133
- name: "Install dependencies"
42-
env:
43-
# `/home/runner` is the result of running `readlink -f ~` on the runner.
44-
UV_CACHE_DIR: /home/runner/.cache/uv
4534
run: |
4635
curl -LsSf https://astral.sh/uv/install.sh | sh
4736
uv venv /home/runner/.venv

0 commit comments

Comments
 (0)