File tree Expand file tree Collapse file tree 1 file changed +36
-1
lines changed Expand file tree Collapse file tree 1 file changed +36
-1
lines changed Original file line number Diff line number Diff line change 40
40
name : dist
41
41
path : dist/
42
42
43
+ get_data :
44
+ runs-on : ubuntu-latest
45
+ steps :
46
+ - name : Create test data directory
47
+ run : mkdir -p $HOME/.cache/stanford-crn
48
+ - name : Load test data cache
49
+ uses : actions/cache@v2
50
+ id : stanford-crn
51
+ with :
52
+ path : ~/.cache/stanford-crn/
53
+ key : data-v0-${{ github.ref_name }}-${{ github.sha }}
54
+ restore-keys : |
55
+ data-v0-${{ github.ref_name }}-
56
+ data-v0-
57
+ - name : Install datalad
58
+ run : |
59
+ sudo apt-get update -y
60
+ sudo apt-get install -y git-annex --no-install-recommends
61
+ python -m pip install datalad==0.14.7 datalad-osf
62
+ datalad wtf
63
+ - name : Fetch test data
64
+ run : |
65
+ DS=$HOME/.cache/stanford-crn
66
+ datalad install -r -s https://github.com/nipreps-data/niworkflows-data.git $DS
67
+ cd $DS
68
+ git -C BIDS-examples-1-enh-ds054 checkout enh/ds054
69
+ datalad update -r --merge -d .
70
+ datalad get -J 2 -r ds000003 ds000030/sub-10228/func
71
+
43
72
test :
44
- needs : [build]
73
+ needs : [build, get_data ]
45
74
runs-on : ubuntu-latest
46
75
strategy :
47
76
matrix :
58
87
uses : actions/setup-python@v3
59
88
with :
60
89
python-version : ${{ matrix.python-version }}
90
+ - name : Load test data cache
91
+ uses : actions/cache@v2
92
+ id : stanford-crn
93
+ with :
94
+ path : ~/.cache/stanford-crn/
95
+ key : data-v0-${{ github.ref_name }}-${{ github.sha }}
61
96
- name : Fetch packages
62
97
uses : actions/download-artifact@v3
63
98
with :
You can’t perform that action at this time.
0 commit comments