Skip to content

Commit

Permalink
ENH: Update CI IPFS test data fetch
Browse files Browse the repository at this point in the history
Workaround for fsspec/ipfsspec#11
  • Loading branch information
thewtex committed Apr 29, 2022
1 parent c9f89ac commit e4e7c0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ jobs:
- name: Setup ipfs
uses: ibnesayeed/setup-ipfs@master
with:
ipfs_version: ^0.9
ipfs_version: ^0.12
- name: Pin ipfs testing data locally
shell: bash
run: |
cid=$(grep 'IPFS_CID =' test_spatial_image_multiscale.py | cut -d ' ' -f 3 | tr -d '"')
ipfs pin add -- $cid
cid=$(grep 'IPFS_CID =' test/test_spatial_image_multiscale.py | cut -d ' ' -f 3 | tr -d '"')
ipfs get -o ./test/data -- $cid
- name: Test with pytest
run: |
pytest --mypy --junitxml=junit/test-results.xml
Expand Down

0 comments on commit e4e7c0b

Please sign in to comment.