Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit95944ed

Browse files
committed
adding testing using github actions
1 parent3ce8c10 commit95944ed

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
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+
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:runtest 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:runtest 3
49+
run:docker run -it --rm nipype_tutorial:latest python /home/neuro/nipype_tutorial/test_notebooks.py 3
50+

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp