Skip to content

Commit

Permalink
fix: hash runner info for cache
Browse files Browse the repository at this point in the history
  • Loading branch information
lengau committed Nov 18, 2024
1 parent a5112a1 commit 698fa3b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/test-python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,16 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Hash runner info
id: runner-info
run: |
echo "cache-hash=$(echo '${{ toJSON(matrix.platform) }}' | sha1sum | cut -f1 -d' ')" >> $GITHUB_OUTPUT
- name: Set up uv with caching
id: setup-uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-suffix: ${{ toJSON(matrix.platform) }}
cache-suffix: ${{ steps.runner-info.outputs.cache-hash }}
- name: Set up tests
shell: bash
run: |
Expand Down

0 comments on commit 698fa3b

Please sign in to comment.