File tree Expand file tree Collapse file tree 3 files changed +74
-49
lines changed Expand file tree Collapse file tree 3 files changed +74
-49
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ coverage :
2
+ status :
3
+ project :
4
+ default :
5
+ target : 70%
6
+ threshold : 10
7
+ base : parent
8
+ if_no_uploads : error
9
+ if_not_found : success
10
+ if_ci_failed : error
11
+ only_pulls : false
12
+ flags : null
13
+ paths : null
14
+ patch :
15
+ default :
16
+ target : auto
17
+ # Allows PRs without tests, overall stats count
18
+ threshold : 100
19
+ base : auto
20
+ if_no_uploads : error
21
+ if_not_found : success
22
+ if_ci_failed : error
23
+ only_pulls : false
24
+ flags : null
25
+ paths : null
26
+
27
+ # Disable comments on PR
28
+ comment : false
29
+
30
+ ignore :
31
+ - " /monai/deploy/_version.py"
Original file line number Diff line number Diff line change
1
+ # This workflow will install Python dependencies, run tests and lint with a single version of Python
2
+ # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3
+
4
+ name : build
5
+
6
+ on :
7
+ push :
8
+ branches : [ main ]
9
+ pull_request :
10
+ branches : [ main ]
11
+
12
+ jobs :
13
+ test :
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - uses : actions/checkout@v2
17
+ - name : Set up Python 3.6
18
+ uses : actions/setup-python@v2
19
+ with :
20
+ python-version : 3.6
21
+ - name : Setup Dev Environment
22
+ run : |
23
+ pip install virtualenv
24
+ virtualenv .venv
25
+ source .venv/bin/activate
26
+ ./run setup
27
+ - name : Check formatting
28
+ run : |
29
+ source .venv/bin/activate
30
+ ./run check -f
31
+ - name : Run Unit tests
32
+ run : |
33
+ source .venv/bin/activate
34
+ ./run test all unit
35
+ - name : Coverage
36
+ run : |
37
+ source .venv/bin/activate
38
+ coverage xml
39
+ - name : Upload coverage
40
+ uses : codecov/codecov-action@v2
41
+ with :
42
+ fail_ci_if_error : false
43
+ files : ./coverage.xml
You can’t perform that action at this time.
0 commit comments