File tree 1 file changed +50
-0
lines changed
1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on :
4
+ push :
5
+ branches : [ master ]
6
+ pull_request :
7
+ branches : [ master ]
8
+
9
+
10
+ jobs :
11
+ build :
12
+ runs-on : ubuntu-latest
13
+
14
+ steps :
15
+ - uses : actions/checkout@v2
16
+
17
+ # In this step, this action saves a list of existing images,
18
+ # the cache is created without them in the post run.
19
+ # It also restores the cache if it exists.
20
+ - uses : satackey/action-docker-layer-caching@v0.0.5
21
+ - name : build the image
22
+ run : docker build . --file Dockerfile -t nipype_tutorial:latest
23
+
24
+ test_1 :
25
+ needs : build
26
+ runs-on : ubuntu-latest
27
+ steps :
28
+ - uses : actions/checkout@v2
29
+ - uses : satackey/action-docker-layer-caching@v0.0.5
30
+ - name : run test 1
31
+ run : docker run -it --rm nipype_tutorial:latest python /home/neuro/nipype_tutorial/test_notebooks.py 1
32
+
33
+ test_2 :
34
+ needs : build
35
+ runs-on : ubuntu-latest
36
+ steps :
37
+ - uses : actions/checkout@v2
38
+ - uses : satackey/action-docker-layer-caching@v0.0.5
39
+ - name : run test 2
40
+ run : docker run -it --rm nipype_tutorial:latest python /home/neuro/nipype_tutorial/test_notebooks.py 2
41
+
42
+ test_3 :
43
+ needs : build
44
+ runs-on : ubuntu-latest
45
+ steps :
46
+ - uses : actions/checkout@v2
47
+ - uses : satackey/action-docker-layer-caching@v0.0.5
48
+ - name : run test 3
49
+ run : docker run -it --rm nipype_tutorial:latest python /home/neuro/nipype_tutorial/test_notebooks.py 3
50
+
You can’t perform that action at this time.
0 commit comments