Skip to content

Commit de834d2

Browse files
authored
Update caching (#422)
* Update caching Copied from brainglobe/brainglobe-atlasapi#301, now everything is in .brainglobe. * Update cache name
1 parent 9b23f5c commit de834d2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/test_and_deploy.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,13 @@ jobs:
5252
python-version: "3.10"
5353

5454
steps:
55-
# Cache the tensorflow model so we don't have to remake it every time
56-
- name: Cache tensorflow model
55+
- name: Cache brainglobe directory
5756
uses: actions/cache@v3
5857
with:
59-
path: "~/.cellfinder"
60-
key: models-${{ hashFiles('~/.brainglobe/**') }}
58+
path: | # ensure we don't cache any interrupted atlas download and extraction, if e.g. we cancel the workflow manually
59+
~/.brainglobe
60+
!~/.brainglobe/atlas.tar.gz
61+
key: brainglobe
6162
# Setup pyqt libraries
6263
- name: Setup qtpy libraries
6364
uses: tlambert03/setup-qt-libs@v1

0 commit comments

Comments
 (0)