diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index 080586f..b359e6d 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -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 }} @@ -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