From b18991ee325d3206ab3429ed5d9df3ac5b37e88a Mon Sep 17 00:00:00 2001 From: Adam Tyson Date: Mon, 20 May 2024 10:10:10 +0100 Subject: [PATCH 1/2] Update caching Copying from https://github.com/brainglobe/brainglobe-atlasapi/pull/301 --- .github/workflows/test_and_deploy.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index e4e2a4f5..2512f699 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -51,7 +51,9 @@ jobs: - name: Cache atlases uses: actions/cache@v3 with: - path: ~/.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 - name: Install hdf5 libs for Mac From 31cf76e29a761af84c188973fecf6bec6e16bf94 Mon Sep 17 00:00:00 2001 From: Alessandro Felder Date: Mon, 20 May 2024 12:56:45 +0100 Subject: [PATCH 2/2] Rename caching step --- .github/workflows/test_and_deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index 2512f699..8d4ffbba 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -48,7 +48,7 @@ jobs: python-version: "3.11" steps: - - name: Cache atlases + - name: Cache brainglobe directory 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