From 892521a9c4effff8e4aee63b311e87e003363e2e Mon Sep 17 00:00:00 2001 From: Adam Tyson Date: Mon, 20 May 2024 10:15:49 +0100 Subject: [PATCH] Add atlas caching The atlases aren't currently needed for the tests (there aren't any), but this will speed them up when tests are added. --- .github/workflows/test_and_deploy.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index bf581f8..e778c6e 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -39,6 +39,13 @@ jobs: python-version: "3.10" steps: + - name: Cache atlases + 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 + ~/.brainglobe + !~/.brainglobe/atlas.tar.gz + key: brainglobe - name: install HDF libs on ARM Mac if: matrix.os == 'macos-latest' run: brew install hdf5