Skip to content

Commit

Permalink
Merge pull request #33 from thewtex/notebook-data-cache
Browse files Browse the repository at this point in the history
ENH: Cache test data for notebook CI tests
  • Loading branch information
thewtex authored May 5, 2022
2 parents 4a76d51 + 7c41bd2 commit c7b4ade
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/notebook-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit c7b4ade

Please sign in to comment.