Skip to content

Commit

Permalink
Cache atlases to speed up CI (#301)
Browse files Browse the repository at this point in the history
* cache atlases

* Update .github/workflows/test_and_deploy.yml

Co-authored-by: Alessandro Felder <[email protected]>

---------

Co-authored-by: Alessandro Felder <[email protected]>
  • Loading branch information
adamltyson and alessandrofelder authored May 20, 2024
1 parent 513ddf3 commit 0084698
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ jobs:
python-version: "3.9"

steps:
- name: Cache atlases
uses: actions/cache@v3
with:
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: brainglobe

- uses: neuroinformatics-unit/actions/test@v2
with:
python-version: ${{ matrix.python-version }}
Expand Down

0 comments on commit 0084698

Please sign in to comment.