Skip to content

Commit 2cc3012

Browse files
committed
TST: Avoid attempting to create test data directory in notebook GHA
Avoid attempting to create test data directory in notebook GHA workflow file: create testing data directory before starting to download data. The step where the data from `OpenNeuro` was being downloaded was effectively creating the test data directory and, thus, attempting to create the directory was failinng in the next step, where the data from OSF was bing downloaded, and which included creating the directory. Fixes: ``` Run mkdir ${TEST_DATA_HOME} (...) mkdir: cannot create directory ‘/home/runner/nifreeze-tests/’: File exists ``` raised for example at: https://github.com/nipreps/nifreeze/actions/runs/15097105297/job/42433228274?pr=117#step:11:19 Inadvertently introduced in commit c170c40.
1 parent 398d7ab commit 2cc3012

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/notebooks.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,15 @@ jobs:
8686
- name: Install DataLad
8787
run: pip install datalad
8888

89+
- name: Create test data directory
90+
run: mkdir ${TEST_DATA_HOME}
91+
8992
- name: Download data from OpenNeuro
9093
run: |
9194
${{ github.workspace }}/scripts/fetch_fmri_nb_openneuro_data.sh "${TEST_DATA_HOME}"
9295
9396
- name: Download data from OSF
9497
run: |
95-
mkdir ${TEST_DATA_HOME}
9698
pip install osfclient
9799
osf -p 39k4x fetch hcpdata.npz "${TEST_DATA_HOME}/hcpdata.npz"
98100

0 commit comments

Comments
 (0)