File tree Expand file tree Collapse file tree 3 files changed +30
-3
lines changed Expand file tree Collapse file tree 3 files changed +30
-3
lines changed Original file line number Diff line number Diff line change 55
55
env :
56
56
TOXENV : ${{ matrix.toxenv }}
57
57
run : tox
58
+ - name : Upload codecov coverage
59
+ uses : codecov/codecov-action@v1
60
+ with :
61
+ files : ./coverage.xml
62
+ flags : ${{ matrix.toxenv }}
63
+ fail_ci_if_error : true
58
64
59
65
coverage :
60
66
runs-on : ubuntu-20.04
Original file line number Diff line number Diff line change
1
+ codecov :
2
+ require_ci_to_pass : yes
3
+
4
+ coverage :
5
+ precision : 2
6
+ round : down
7
+ range : " 70...100"
8
+
9
+ comment :
10
+ layout : " diff,flags,files"
11
+ behavior : default
12
+ require_changes : yes
13
+
14
+ github_checks :
15
+ annotations : true
Original file line number Diff line number Diff line change @@ -66,16 +66,22 @@ commands = python setup.py build_sphinx
66
66
67
67
[testenv:cover]
68
68
commands =
69
- pytest --cov gitlab --cov-report term --cov-report html \
69
+ pytest --cov --cov-report term --cov-report html \
70
70
--cov-report xml gitlab/tests {posargs}
71
71
72
72
[coverage:run]
73
73
omit = *tests*
74
+ source = gitlab
75
+
76
+ [pytest]
77
+ script_launch_mode = subprocess
74
78
75
79
[testenv:cli_func_v4]
76
80
deps = -r{toxinidir}/docker-requirements.txt
77
- commands = pytest --script-launch-mode =subprocess tools/functional/cli {posargs}
81
+ commands =
82
+ pytest --cov --cov-report xml tools/functional/cli {posargs}
78
83
79
84
[testenv:py_func_v4]
80
85
deps = -r{toxinidir}/docker-requirements.txt
81
- commands = pytest tools/functional/api {posargs}
86
+ commands =
87
+ pytest --cov --cov-report xml tools/functional/api {posargs}
You can’t perform that action at this time.
0 commit comments