Skip to content

Commit c97a893

Browse files
committed
use bioimageio cache
1 parent a9d1132 commit c97a893

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/build.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,20 @@ jobs:
4949
post-cleanup: 'all'
5050
- name: additional setup
5151
run: pip install --no-deps -e .
52+
- name: Get Date
53+
id: get-date
54+
run: |
55+
echo "date=$(date +'%Y-%b')"
56+
echo "date=$(date +'%Y-%b')" >> $GITHUB_OUTPUT
57+
shell: bash
58+
- uses: actions/cache@v4
59+
with:
60+
path: bioimageio_cache
61+
key: "test-spec-conda-${{ steps.get-date.outputs.date }}"
5262
- name: pytest-spec-conda
5363
run: pytest --disable-pytest-warnings
64+
env:
65+
BIOIMAGEIO_CACHE_PATH: bioimageio_cache
5466

5567
test-spec-main:
5668
runs-on: ubuntu-latest
@@ -83,8 +95,20 @@ jobs:
8395
pip install --no-deps git+https://github.com/bioimage-io/spec-bioimage-io
8496
- name: additional setup core
8597
run: pip install --no-deps -e .
98+
- name: Get Date
99+
id: get-date
100+
run: |
101+
echo "date=$(date +'%Y-%b')"
102+
echo "date=$(date +'%Y-%b')" >> $GITHUB_OUTPUT
103+
shell: bash
104+
- uses: actions/cache@v4
105+
with:
106+
path: bioimageio_cache
107+
key: "test-spec-main-${{ steps.get-date.outputs.date }}"
86108
- name: pytest-spec-main
87109
run: pytest --disable-pytest-warnings
110+
env:
111+
BIOIMAGEIO_CACHE_PATH: bioimageio_cache
88112
- if: matrix.python-version == '3.12' && github.event_name == 'pull_request'
89113
uses: orgoro/[email protected]
90114
with:
@@ -123,8 +147,20 @@ jobs:
123147
post-cleanup: 'all'
124148
- name: additional setup
125149
run: pip install --no-deps -e .
150+
- name: Get Date
151+
id: get-date
152+
run: |
153+
echo "date=$(date +'%Y-%b')"
154+
echo "date=$(date +'%Y-%b')" >> $GITHUB_OUTPUT
155+
shell: bash
156+
- uses: actions/cache@v4
157+
with:
158+
path: bioimageio_cache
159+
key: "test-tf-${{ steps.get-date.outputs.date }}"
126160
- name: pytest-spec-tf
127161
run: pytest --disable-pytest-warnings
162+
env:
163+
BIOIMAGEIO_CACHE_PATH: bioimageio_cache
128164

129165
conda-build:
130166
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)