From 7c41bd26481db1fd7c855c6fe29fd6bba5191e6c Mon Sep 17 00:00:00 2001 From: Matt McCormick Date: Thu, 5 May 2022 07:48:33 -0400 Subject: [PATCH] ENH: Cache test data for notebook CI tests --- .github/workflows/notebook-test.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/notebook-test.yml b/.github/workflows/notebook-test.yml index 06613e6..0c36593 100644 --- a/.github/workflows/notebook-test.yml +++ b/.github/workflows/notebook-test.yml @@ -8,6 +8,16 @@ jobs: name: Test notebooks with nbmake steps: - uses: actions/checkout@v2 + + - name: Setup ipfs + uses: ibnesayeed/setup-ipfs@master + with: + ipfs_version: ^0.12 + - name: Cache ipfs testing data locally + shell: bash + run: | + cid=$(grep 'IPFS_CID =' test/test_spatial_image_multiscale.py | cut -d ' ' -f 3 | tr -d '"') + ipfs get -o ./test/data -- $cid - uses: actions/setup-python@v3 with: python-version: '3.9'