From c64a5d2a1b2344e9ba1e521b98fce8fe599ecd91 Mon Sep 17 00:00:00 2001 From: beckermr Date: Thu, 8 Aug 2024 00:29:04 -0500 Subject: [PATCH] fix: add sha to cache to ensure it gets updated as tests runs --- .github/workflows/tests.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1bc21bfff..4ed70b1d5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 @@ -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