Skip to content

Commit

Permalink
Merge pull request #101 from brainglobe/check-caching
Browse files Browse the repository at this point in the history
Change cache path
  • Loading branch information
alessandrofelder authored Sep 4, 2024
2 parents 5784d8f + c38fc25 commit a0765c1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ jobs:
- name: Cache data
uses: actions/cache@v4
with:
path: "$HOME/.brainglobe"
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
# hash on conftest in case url changes
key: brainglobe-dir-${{ runner.os }}${{ hashFiles('**/conftest.py') }}

Expand Down Expand Up @@ -76,7 +78,9 @@ jobs:
- name: Cache data
uses: actions/cache@v4
with:
path: "$HOME/.brainglobe"
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
# hash on conftest in case url changes
key: brainglobe-dir-${{ runner.os }}${{ hashFiles('**/conftest.py') }}

Expand Down

0 comments on commit a0765c1

Please sign in to comment.