From e5dc4ef94da5e71c6c799e8e6f78d4e1cd3ac7d0 Mon Sep 17 00:00:00 2001 From: Stefano Fiorucci Date: Wed, 16 Apr 2025 18:05:12 +0200 Subject: [PATCH] ci: stop caching Hatch python environment on Ubuntu (#9249) * try setting hatch variables * debug steps * stop caching on ubuntu * remove debug steps * cache should work for mac and wind * bring back cache and log verbose; temp skip win and mac * try * stop caching Hatch python environment for Ubuntu * remove trigger --- .github/workflows/tests.yml | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index bb2e4428b..e1b9d7329 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -163,6 +163,7 @@ jobs: - uses: actions/cache/save@v4 id: cache + if: matrix.os != 'ubuntu-latest' with: path: ${{ steps.hatch.outputs.env }} key: ${{ runner.os }}-${{ github.sha }} @@ -238,12 +239,6 @@ jobs: pip install hatch==${{ env.HATCH_VERSION }} echo "env=$(hatch env find test)" >> "$GITHUB_OUTPUT" - - uses: actions/cache/restore@v4 - id: cache - with: - path: ${{ steps.hatch.outputs.env }} - key: ${{ runner.os }}-${{ github.sha }} - - name: Mypy if: steps.files.outputs.python_any_changed == 'true' || steps.files.outputs.pyproject_any_changed == 'true' run: | @@ -310,12 +305,6 @@ jobs: pip install hatch==${{ env.HATCH_VERSION }} echo "env=$(hatch env find test)" >> "$GITHUB_OUTPUT" - - uses: actions/cache/restore@v4 - id: cache - with: - path: ${{ steps.hatch.outputs.env }} - key: ${{ runner.os }}-${{ github.sha }} - - name: Install dependencies run: | sudo apt update