Skip to content

Commit

Permalink
Merge pull request #2921 from regro/fix-cache-keys
Browse files Browse the repository at this point in the history
fix: add sha to cache to ensure it gets updated as tests runs
  • Loading branch information
beckermr authored Aug 8, 2024
2 parents ec3d3ca + c64a5d2 commit 9b82c0b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,9 @@ jobs:
uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
with:
path: .test_durations
key: test-durations-${{ github.ref }}
key: test-durations-${{ github.ref }}-${{ github.sha }}
restore-keys: |
test-durations-${{ github.ref }}-
test-durations-
- name: run pytest
Expand Down Expand Up @@ -160,8 +161,9 @@ jobs:
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
with:
path: .test_durations
key: test-durations-${{ github.ref }}
key: test-durations-${{ github.ref }}-${{ github.sha }}
restore-keys: |
test-durations-${{ github.ref }}-
test-durations-
- name: download test duration artifacts
Expand Down

0 comments on commit 9b82c0b

Please sign in to comment.