Skip to content

Commit

Permalink
explicit cache restore/save
Browse files Browse the repository at this point in the history
  • Loading branch information
FynnBe committed Nov 13, 2024
1 parent 69bfa25 commit 62bf2ea
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
echo "date=$(date +'%Y-%b')"
echo "date=$(date +'%Y-%b')" >> $GITHUB_OUTPUT
shell: bash
- uses: actions/cache@v4
- uses: actions/cache/restore@v4
with:
path: bioimageio_cache
key: "py${{ matrix.python-version }}-${{ steps.get-date.outputs.date }}"
Expand All @@ -54,6 +54,11 @@ jobs:
env:
BIOIMAGEIO_CACHE_PATH: bioimageio_cache
SKIP_EXPENSIVE_TESTS: ${{ matrix.run_expensive_tests && 'false' || 'true' }}
- uses: actions/cache/save@v4
# explicit restore/save instead of cache action to cache even if coverage fails
with:
path: bioimageio_cache
key: "py${{ matrix.python-version }}-${{ steps.get-date.outputs.date }}"
- if: matrix.is-dev-version && github.event_name == 'pull_request'
uses: orgoro/[email protected]
with:
Expand Down

0 comments on commit 62bf2ea

Please sign in to comment.