|
49 | 49 | post-cleanup: 'all'
|
50 | 50 | - name: additional setup
|
51 | 51 | 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 }}" |
52 | 62 | - name: pytest-spec-conda
|
53 | 63 | run: pytest --disable-pytest-warnings
|
| 64 | + env: |
| 65 | + BIOIMAGEIO_CACHE_PATH: bioimageio_cache |
54 | 66 |
|
55 | 67 | test-spec-main:
|
56 | 68 | runs-on: ubuntu-latest
|
|
83 | 95 | pip install --no-deps git+https://github.com/bioimage-io/spec-bioimage-io
|
84 | 96 | - name: additional setup core
|
85 | 97 | 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 }}" |
86 | 108 | - name: pytest-spec-main
|
87 | 109 | run: pytest --disable-pytest-warnings
|
| 110 | + env: |
| 111 | + BIOIMAGEIO_CACHE_PATH: bioimageio_cache |
88 | 112 | - if: matrix.python-version == '3.12' && github.event_name == 'pull_request'
|
89 | 113 |
|
90 | 114 | with:
|
@@ -123,8 +147,20 @@ jobs:
|
123 | 147 | post-cleanup: 'all'
|
124 | 148 | - name: additional setup
|
125 | 149 | 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 }}" |
126 | 160 | - name: pytest-spec-tf
|
127 | 161 | run: pytest --disable-pytest-warnings
|
| 162 | + env: |
| 163 | + BIOIMAGEIO_CACHE_PATH: bioimageio_cache |
128 | 164 |
|
129 | 165 | conda-build:
|
130 | 166 | runs-on: ubuntu-latest
|
|
0 commit comments