Skip to content

Commit 9dc8cd0

Browse files
authored
Downloaded data from Zenodo
1 parent e5c6a9a commit 9dc8cd0

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/httomolibgpu_tests_run_iris.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,43 @@ jobs:
3131
post-cleanup: 'all'
3232
init-shell: bash
3333

34+
- name: Download test data from Zenodo
35+
run: |
36+
# Install required tools
37+
yum install -y curl jq
38+
39+
# Create a directory to store test data
40+
mkdir -p tests/large_data_archive
41+
cd tests/large_data_archive
42+
43+
# Download and process all files from Zenodo
44+
echo "Fetching files from Zenodo record 14338424..."
45+
curl -s "https://zenodo.org/api/records/14338424" | \
46+
jq -r '.files.entries[] | [.key, .links.content, .checksum] | @tsv' | \
47+
while IFS=$'\t' read -r filename url checksum; do
48+
echo "Downloading ${filename}..."
49+
curl -L -o "${filename}" "${url}"
50+
51+
# Extract MD5 from checksum string (removes 'md5:' prefix)
52+
expected_md5=${checksum#md5:}
53+
actual_md5=$(md5sum "${filename}" | cut -d' ' -f1)
54+
55+
if [ "${actual_md5}" = "${expected_md5}" ]; then
56+
echo "✓ Verified ${filename}"
57+
else
58+
echo "✗ Checksum verification failed for ${filename}"
59+
echo "Expected: ${expected_md5}"
60+
echo "Got: ${actual_md5}"
61+
exit 1
62+
fi
63+
done
64+
65+
# Show downloaded files
66+
echo -e "\nDownloaded files:"
67+
ls -lh
68+
69+
cd ../..
70+
3471
- name: Install httomolibgpu
3572
run: |
3673
pip install .[dev]

0 commit comments

Comments
 (0)