Skip to content

Commit

Permalink
Update caching (#109)
Browse files Browse the repository at this point in the history
* Update caching

Copying from brainglobe/brainglobe-atlasapi#301

Also we don't need to cache .cellfinder anymore

* Rename caching step

---------

Co-authored-by: Alessandro Felder <[email protected]>
  • Loading branch information
adamltyson and alessandrofelder authored May 20, 2024
1 parent 2c3ebc4 commit 4b08e30
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,14 @@ jobs:
- os: windows-latest
python-version: "3.10"
steps:
# Cache the tensorflow model so we don't have to remake it every time
- name: Cache tensorflow model
uses: actions/cache@v3
with:
path: "~/.cellfinder"
key: models-${{ hashFiles('~/.brainglobe/**') }}
# Cache atlases
- name: Cache atlases
- name: Cache brainglobe directory
uses: actions/cache@v3
with:
path: "~/.brainglobe"
key: atlases
path: | # ensure we don't cache any interrupted atlas download and extraction, if e.g. we cancel the workflow manually
~/.brainglobe
!~/.brainglobe/atlas.tar.gz
key: atlases-models
fail-on-cache-miss: true
enableCrossOsArchive: true
# install additional Macos dependencies
Expand Down

0 comments on commit 4b08e30

Please sign in to comment.