Skip to content

Commit

Permalink
Update caching
Browse files Browse the repository at this point in the history
Copying from brainglobe/brainglobe-atlasapi#301

Also we don't need to cache .cellfinder anymore
  • Loading branch information
adamltyson authored May 20, 2024
1 parent 2c3ebc4 commit d233b76
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 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
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 d233b76

Please sign in to comment.