Skip to content

Commit 30b595f

Browse files
committed
only save bioimageio_cache once
1 parent f050601 commit 30b595f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/build.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
spec: main
4545
run-expensive-tests: true
4646
report-coverage: true
47+
save-cache: true
4748
- python-version: '3.12'
4849
conda-env: dev
4950
spec: conda
@@ -104,6 +105,12 @@ jobs:
104105
pyright
105106
if: matrix.run-expensive-tests
106107
- uses: actions/cache@v4
108+
if: matrix.save-cache
109+
with:
110+
path: bioimageio_cache
111+
key: "test-${{matrix.spec}}-${{ steps.get-date.outputs.date }}"
112+
- uses: actions/cache/restore@v4
113+
if: !matrix.save-cache
107114
with:
108115
path: bioimageio_cache
109116
key: "test-${{matrix.spec}}-${{ steps.get-date.outputs.date }}"

0 commit comments

Comments
 (0)