Skip to content

Commit 9c9929a

Browse files
Update caching (#177)
* Update caching Copied from brainglobe/brainglobe-atlasapi#301 * Rename caching step --------- Co-authored-by: Alessandro Felder <[email protected]>
1 parent 4081f85 commit 9c9929a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/test_and_deploy.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,12 @@ jobs:
4040
python-version: "3.9"
4141

4242
steps:
43-
- name: Cache atlases
43+
- name: Cache brainglobe directory
4444
uses: actions/cache@v3
4545
with:
46-
path: ~/.brainglobe
46+
path: | # ensure we don't cache any interrupted atlas download and extraction, if e.g. we cancel the workflow manually
47+
~/.brainglobe
48+
!~/.brainglobe/atlas.tar.gz
4749
key: bg-atlases
4850
- name: install HDF5 libs on ARM Mac
4951
if: matrix.os == 'macos-latest'

0 commit comments

Comments
 (0)