Skip to content

Commit a12ad0f

Browse files
committed
install python before pre-commit cache key
1 parent 3030139 commit a12ad0f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/main.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ jobs:
1818
version: "0.4.24"
1919
enable-cache: true
2020

21+
- name: Install Python
22+
run: uv python install
23+
2124
- name: pre-commit cache key
2225
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
2326
- uses: actions/cache@v4
2427
with:
2528
path: ~/.cache/pre-commit
2629
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
2730

28-
- name: Install Python
29-
run: uv python install
30-
3131
- name: install dependencies
3232
run: uv sync
3333

0 commit comments

Comments
 (0)