From 4d245ed7a1e35f955197bf2b4e70e93a48fad987 Mon Sep 17 00:00:00 2001 From: Michal Baumgartner Date: Fri, 31 Oct 2025 19:14:58 +0100 Subject: [PATCH 1/2] fix(ci): remove `restore-keys` from cache to always use latest lockfile --- .github/workflows/ci.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 56872e0..93ac492 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,8 +48,6 @@ jobs: with: path: .venv key: venv-${{ github.event.pull_request.head.repo.full_name || github.repository }}-py${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} - restore-keys: | - venv-${{ github.event.pull_request.head.repo.full_name || github.repository }}-py${{ steps.setup-python.outputs.python-version }}- - name: Install dependencies if: steps.cache-deps.outputs.cache-hit != 'true' @@ -86,8 +84,6 @@ jobs: with: path: .venv key: venv-${{ github.event.pull_request.head.repo.full_name || github.repository }}-py${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} - restore-keys: | - venv-${{ github.event.pull_request.head.repo.full_name || github.repository }}-py${{ steps.setup-python.outputs.python-version }}- - name: Install dependencies if: steps.cache-deps.outputs.cache-hit != 'true' @@ -189,8 +185,6 @@ jobs: with: path: .venv key: venv-${{ github.event.pull_request.head.repo.full_name || github.repository }}-py${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }} - restore-keys: | - venv-${{ github.event.pull_request.head.repo.full_name || github.repository }}-py${{ matrix.python-version }}- - name: Install dependencies if: steps.cache-deps.outputs.cache-hit != 'true' @@ -327,8 +321,6 @@ jobs: with: path: .venv key: venv-${{ github.event.pull_request.head.repo.full_name || github.repository }}-py${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }} - restore-keys: | - venv-${{ github.event.pull_request.head.repo.full_name || github.repository }}-py${{ matrix.python-version }}- - name: Install dependencies if: steps.cache-deps.outputs.cache-hit != 'true' From b217074989549e607838aff38df5e704a0ef06e2 Mon Sep 17 00:00:00 2001 From: Michal Baumgartner Date: Fri, 31 Oct 2025 19:29:21 +0100 Subject: [PATCH 2/2] test: change cache prefix to force clean run --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 93ac492..287d6c5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,7 +47,7 @@ jobs: uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 with: path: .venv - key: venv-${{ github.event.pull_request.head.repo.full_name || github.repository }}-py${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} + key: venv-v2-${{ github.event.pull_request.head.repo.full_name || github.repository }}-py${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('poetry.lock') }} - name: Install dependencies if: steps.cache-deps.outputs.cache-hit != 'true' @@ -83,7 +83,7 @@ jobs: uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 with: path: .venv - key: venv-${{ github.event.pull_request.head.repo.full_name || github.repository }}-py${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} + key: venv-v2-${{ github.event.pull_request.head.repo.full_name || github.repository }}-py${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('poetry.lock') }} - name: Install dependencies if: steps.cache-deps.outputs.cache-hit != 'true' @@ -184,7 +184,7 @@ jobs: uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 with: path: .venv - key: venv-${{ github.event.pull_request.head.repo.full_name || github.repository }}-py${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }} + key: venv-v2-${{ github.event.pull_request.head.repo.full_name || github.repository }}-py${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }} - name: Install dependencies if: steps.cache-deps.outputs.cache-hit != 'true' @@ -320,7 +320,7 @@ jobs: uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 with: path: .venv - key: venv-${{ github.event.pull_request.head.repo.full_name || github.repository }}-py${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }} + key: venv-v2-${{ github.event.pull_request.head.repo.full_name || github.repository }}-py${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }} - name: Install dependencies if: steps.cache-deps.outputs.cache-hit != 'true'