diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index 3655b0ba..78be7bb5 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -52,12 +52,13 @@ jobs: python-version: "3.10" steps: - # Cache the tensorflow model so we don't have to remake it every time - - name: Cache tensorflow model + - name: Cache brainglobe directory uses: actions/cache@v3 with: - path: "~/.cellfinder" - key: models-${{ hashFiles('~/.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 + key: brainglobe # Setup pyqt libraries - name: Setup qtpy libraries uses: tlambert03/setup-qt-libs@v1