From 611629b9e47be7d5e07d525fc68c66b671d202da Mon Sep 17 00:00:00 2001 From: Alyssa Travitz Date: Tue, 16 Dec 2025 09:15:59 -0800 Subject: [PATCH] add in pooch cacheing --- .github/workflows/ci.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a5debbc..a16b50f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -56,6 +56,19 @@ jobs: run: | python -Ic "import openfe_analysis; print(openfe_analysis.__version__)" + - name: Cache Pooch data + uses: actions/cache@v4 + with: + path: | + # linux cache location + ~/.cache/openfe + # osx cache location + ~/Library/Caches/openfe + # When files are added or changed in a pooch registry + # bump this key to create a new cache, for example if + # the key is pooch-${{ matrix.os }}-1 change it to pooch-${{ matrix.os }}-2 + key: pooch-${{ matrix.os }}-1 + - name: "Run tests" run: | pytest -n auto -v --cov=openfe_analysis --cov-report=xml --durations=10