From 9a1edaa4f483f365b1ac57cb3f92eb8fc6d9ede2 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 9 Jul 2025 15:21:21 -1000 Subject: [PATCH] Fix Python cache key mismatch for all pytest jobs (#9417) --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a753ac75ea..811cc3fe3f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -204,6 +204,7 @@ jobs: - name: Check out code from GitHub uses: actions/checkout@v4.2.2 - name: Restore Python + id: restore-python uses: ./.github/actions/restore-python with: python-version: ${{ matrix.python-version }} @@ -225,11 +226,11 @@ jobs: with: token: ${{ secrets.CODECOV_TOKEN }} - name: Save Python virtual environment cache - if: github.ref == 'refs/heads/dev' && (matrix.os == 'windows-latest' || matrix.os == 'macOS-latest') + if: github.ref == 'refs/heads/dev' uses: actions/cache/save@v4.2.3 with: path: venv - key: ${{ runner.os }}-${{ matrix.python-version }}-venv-${{ needs.common.outputs.cache-key }} + key: ${{ runner.os }}-${{ steps.restore-python.outputs.python-version }}-venv-${{ needs.common.outputs.cache-key }} integration-tests: name: Run integration tests