Skip to content

Commit

Permalink
update caching
Browse files Browse the repository at this point in the history
  • Loading branch information
adamltyson committed Jul 25, 2024
1 parent 6d55029 commit 243986f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,12 @@ jobs:
python-version: "3.12"

steps:
- name: Cache BrainGlobe data
- name: Cache data
uses: actions/cache@v4
with:
path: $HOME/.brainglobe
key: brainglobe_dir-${{ runner.os }}-${{ hashFiles('**/.brainglobe/**') }}
path: "$HOME/.brainglobe"
# hash on conftest in case url changes
key: brainglobe-dir${{ runner.os }}${{ hashFiles('**/conftest.py') }}


- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -72,11 +73,12 @@ jobs:


steps:
- name: Cache BrainGlobe data
- name: Cache data
uses: actions/cache@v4
with:
path: $HOME/.brainglobe
key: brainglobe_dir-${{ runner.os }}-${{ hashFiles('**/.brainglobe/**') }}
path: "$HOME/.brainglobe"
# hash on conftest in case url changes
key: brainglobe-dir${{ runner.os }}${{ hashFiles('**/conftest.py') }}

- name: Set up Python
uses: actions/setup-python@v4
Expand Down

0 comments on commit 243986f

Please sign in to comment.