[CI/CD] Added image test data to blobs #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Prepare test data | |
on: | |
workflow_dispatch: | |
# uncomment and adjust the branch name if you need to add new datasets to the artifact | |
push: | |
branches: | |
- dataset | |
jobs: | |
prepare-data: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Download test datasets | |
run: | | |
set -e | |
rm -rf ./data && mkdir -p ./data | |
curl -o ./data/openslide-mirax.zip https://openslide.cs.cmu.edu/download/openslide-testdata/Mirax/Mirax2.2-4-PNG.zip | |
curl -o ./data/zeiss.zip https://datashare.biochem.mpg.de/s/k2C6sg0qrXBdWdc/download | |
curl -o ./data/blobs.zip https://datashare.biochem.mpg.de/s/0oTGB6xpUaWIaVh/download | |
- name: Unzip files | |
run: | | |
unzip ./data/openslide-mirax.zip -d ./data/openslide-mirax | |
unzip ./data/zeiss.zip -d ./data/zeiss | |
unzip ./data/blobs.zip -d ./data/blobs | |
- name: Remove archives | |
run: | | |
rm ./data/openslide-mirax.zip | |
rm ./data/zeiss.zip | |
rm ./data/blobs.zip | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: data | |
path: ./data |