From d233b76d0dbf664fe195ece0399ff719ffad5f83 Mon Sep 17 00:00:00 2001 From: Adam Tyson Date: Mon, 20 May 2024 10:12:01 +0100 Subject: [PATCH] Update caching Copying from https://github.com/brainglobe/brainglobe-atlasapi/pull/301 Also we don't need to cache .cellfinder anymore --- .github/workflows/test_and_deploy.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index d9ccc93..e2b2c27 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -45,18 +45,14 @@ jobs: - os: windows-latest python-version: "3.10" steps: - # Cache the tensorflow model so we don't have to remake it every time - - name: Cache tensorflow model - uses: actions/cache@v3 - with: - path: "~/.cellfinder" - key: models-${{ hashFiles('~/.brainglobe/**') }} # Cache atlases - name: Cache atlases uses: actions/cache@v3 with: - path: "~/.brainglobe" - key: atlases + 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: atlases-models fail-on-cache-miss: true enableCrossOsArchive: true # install additional Macos dependencies