File tree Expand file tree Collapse file tree 1 file changed +28
-1
lines changed Expand file tree Collapse file tree 1 file changed +28
-1
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,23 @@ jobs:
134
134
- docker/Dockerfile.base-pruned
135
135
- docker/get_base_image.sh
136
136
137
+ get_test_data :
138
+ machine : *machine_kwds
139
+ working_directory : /home/circleci/nipype
140
+ steps :
141
+ - restore_cache :
142
+ keys :
143
+ - data-v0-{{ .Branch }}-{{ .Revision }}
144
+ - data-v0--{{ .Revision }}
145
+ - data-v0-{{ .Branch }}-
146
+ - data-v0-master-
147
+ - data-v0-
148
+ - run : *_download_test_data
149
+ - save_cache :
150
+ key : data-v0-{{ .Branch }}-{{ .Revision }}
151
+ paths :
152
+ - /home/circleci/examples
153
+
137
154
test_pytest :
138
155
machine : *machine_kwds
139
156
working_directory : /home/circleci/nipype
@@ -142,13 +159,15 @@ jobs:
142
159
path : /home/circleci/nipype
143
160
- attach_workspace :
144
161
at : /tmp
162
+ - restore_cache :
163
+ keys :
164
+ - data-v0-{{ .Branch }}-{{ .Revision }}
145
165
- run : *set_pr_number
146
166
- run : *generate_dockerfiles
147
167
- run : *modify_nipype_version
148
168
- run : *get_base_image
149
169
- run : *build_main_image_py38
150
170
- run : *_get_codecov
151
- - run : *_download_test_data
152
171
- run : *prepare_working_directory
153
172
- run :
154
173
name : Run pytests
@@ -248,6 +267,13 @@ workflows:
248
267
- /docs?\/.*/
249
268
tags :
250
269
only : /.*/
270
+ - get_test_data :
271
+ filters :
272
+ branches :
273
+ ignore :
274
+ - /docs?\/.*/
275
+ tags :
276
+ only : /.*/
251
277
- test_pytest :
252
278
filters :
253
279
branches :
@@ -257,6 +283,7 @@ workflows:
257
283
only : /.*/
258
284
requires :
259
285
- compare_base_dockerfiles
286
+ - get_test_data
260
287
- deploy_dockerhub :
261
288
filters :
262
289
branches :
You can’t perform that action at this time.
0 commit comments