Skip to content

Commit 6f678cb

Browse files
authored
Merge pull request #159 from djarecka/github_action
[ci] adding github action (closes #156)
2 parents ff7c423 + 90a7de7 commit 6f678cb

8 files changed

+68
-700
lines changed

.github/workflows/testing.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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+
- name: generate the Dockerfile from generate.sh
17+
run: bash generate.sh
18+
# In this step, this action saves a list of existing images,
19+
# the cache is created without them in the post run.
20+
# It also restores the cache if it exists.
21+
- uses: satackey/action-docker-layer-caching@v0.0.5
22+
- name: build the image
23+
run: docker build . --file Dockerfile -t nipype_tutorial:latest
24+
25+
test_1:
26+
needs: build
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v2
30+
- uses: satackey/action-docker-layer-caching@v0.0.5
31+
- name: run test 1
32+
run: docker run --rm nipype_tutorial:latest python /home/neuro/nipype_tutorial/test_notebooks.py 1
33+
34+
test_2:
35+
needs: build
36+
runs-on: ubuntu-latest
37+
steps:
38+
- uses: actions/checkout@v2
39+
- uses: satackey/action-docker-layer-caching@v0.0.5
40+
- name: run test 2
41+
run: docker run --rm nipype_tutorial:latest python /home/neuro/nipype_tutorial/test_notebooks.py 2
42+
43+
test_3:
44+
needs: build
45+
runs-on: ubuntu-latest
46+
steps:
47+
- uses: actions/checkout@v2
48+
- uses: satackey/action-docker-layer-caching@v0.0.5
49+
- name: run test 3
50+
run: docker run --rm nipype_tutorial:latest python /home/neuro/nipype_tutorial/test_notebooks.py 3

Dockerfile

Lines changed: 0 additions & 340 deletions
This file was deleted.

0 commit comments

Comments
 (0)