Skip to content

Commit

Permalink
Added prepare-test-data
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Diedrich committed Dec 14, 2024
1 parent 263de39 commit e6c6161
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/prepare_test_data.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
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
- name: Unzip files
run: |
unzip ./data/openslide-mirax.zip -d ./data/openslide-mirax
unzip ./data/zeiss.zip -d ./data/zeiss
- name: Remove archives
run: |
rm ./data/openslide-mirax.zip
rm ./data/zeiss.zip
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: data
path: ./data

0 comments on commit e6c6161

Please sign in to comment.