Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(Data): Add OME-NGFF testing data #481

Merged
merged 2 commits into from
May 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 24 additions & 2 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-20.04, macos-10.15, windows-2019]
node: [10, 12, 14]
node: [14, 16, 18]
name: ${{ matrix.os }} and node ${{ matrix.node }}
steps:
- uses: actions/checkout@v2
Expand All @@ -23,11 +23,33 @@ jobs:
- name: Build
run: npm run build

- name: Setup ipfs
uses: ibnesayeed/setup-ipfs@master
with:
ipfs_version: ^0.12
- name: Connect to ipfs peers with our data
shell: bash
run: |
export MSYS_NO_PATHCONV=1
# web3.storage
ipfs swarm connect /ip4/139.178.69.155/tcp/4001/p2p/12D3KooWR19qPPiZH4khepNjS3CLXiB7AbrbAD4ZcDjN1UjGUNE1
ipfs swarm connect /ip4/139.178.68.91/tcp/4001/p2p/12D3KooWEDMw7oRqQkdCJbyeqS5mUmWGwTp8JJ2tjCzTkHboF6wK
ipfs swarm connect /ip4/147.75.33.191/tcp/4001/p2p/12D3KooWPySxxWQjBgX9Jp6uAHQfVmdq8HG1gVvS1fRawHNSrmqW
ipfs swarm connect /ip4/147.75.32.73/tcp/4001/p2p/12D3KooWNuoVEfVLJvU3jWY2zLYjGUaathsecwT19jhByjnbQvkj
ipfs swarm connect /ip4/145.40.89.195/tcp/4001/p2p/12D3KooWSnniGsyAF663gvHdqhyfJMCjWJv54cGSzcPiEMAfanvU
ipfs swarm connect /ip4/136.144.56.153/tcp/4001/p2p/12D3KooWKytRAd2ujxhGzaLHKJuje8sVrHXvjGNvHXovpar5KaKQ
- name: Pin ipfs testing data locally
shell: bash
run: |
cid=$(grep 'IPFS_CID =' test/downloadData.mjs | cut -d ' ' -f 4 | tr -d "'")
ipfs get -o ./test/data -- $cid

- name: Test
if: ${{ runner.os == 'Linux' }}
run: |
npm run test:downloadData
# Allow writing test/output.html
sudo chmod 777 test
sudo chmod -R 777 test
# To debug, run `./test/run.sh -d`
npm run test:headless

Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ src/IO/Downsample/web-build/itk-wasm-build-env
src/Compression/blosc-zarr/web-build/*
!src/Compression/blosc-zarr/web-build/BloscZarr.js
!src/Compression/blosc-zarr/web-build/BloscZarr.umd.js
!src/Compression/blosc-zarr/web-build/BloscZarr.wasm
!src/Compression/blosc-zarr/web-build/BloscZarr.wasm
test/data/
Loading