File tree Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Original file line number Diff line number Diff line change 2727 outputs :
2828 cache-key : ${{steps.cache-key.outputs.cache-key}}
2929 steps :
30- - uses : actions/checkout@v4
31- - uses : actions/setup-python@v5
32- with :
33- python-version : ' 3.12'
34- cache : ' pip'
3530 - name : Get Date
3631 id : get-date
3732 run : |
@@ -40,14 +35,30 @@ jobs:
4035 - id : cache-key
4136 run : echo "cache-key=test-${{steps.get-date.outputs.date}}" >> $GITHUB_OUTPUT
4237 - uses : actions/cache@v4
38+ id : look-up
4339 with :
4440 path : bioimageio_cache
45- key : steps.get-cache-key.outputs.cache-key
41+ key : ${{steps.cache-key.outputs.cache-key}}
42+ lookup-only : true
43+ - uses : actions/checkout@v4
44+ if : steps.look-up.outputs.cache-hit != 'true'
45+ - uses : actions/cache@v4
46+ if : steps.look-up.outputs.cache-hit != 'true'
47+ with :
48+ path : bioimageio_cache
49+ key : ${{steps.cache-key.outputs.cache-key}}
50+ - uses : actions/setup-python@v5
51+ if : steps.look-up.outputs.cache-hit != 'true'
52+ with :
53+ python-version : ' 3.12'
54+ cache : ' pip'
4655 - name : Install dependencies
56+ if : steps.look-up.outputs.cache-hit != 'true'
4757 run : |
4858 pip install --upgrade pip
4959 pip install -e .[dev]
5060 - run : pytest --disable-pytest-warnings tests/test_bioimageio_collection.py::test_rdf_format_to_populate_cache
61+ if : steps.look-up.outputs.cache-hit != 'true'
5162 env :
5263 BIOIMAGEIO_POPULATE_CACHE : ' 1'
5364 BIOIMAGEIO_CACHE_PATH : bioimageio_cache
You can’t perform that action at this time.
0 commit comments