Skip to content

Commit

Permalink
install python before pre-commit cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
Fogapod committed Oct 19, 2024
1 parent 3030139 commit a12ad0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ jobs:
version: "0.4.24"
enable-cache: true

- name: Install Python
run: uv python install

- name: pre-commit cache key
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}

- name: Install Python
run: uv python install

- name: install dependencies
run: uv sync

Expand Down

0 comments on commit a12ad0f

Please sign in to comment.