File tree Expand file tree Collapse file tree 4 files changed +28
-1
lines changed Expand file tree Collapse file tree 4 files changed +28
-1
lines changed Original file line number Diff line number Diff line change 56
56
- name : Run tests
57
57
run : |
58
58
make test
59
+
60
+ - name : Upload coverage to Codecov
61
+ uses : codecov/codecov-action@v4
62
+ env :
63
+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
64
+ with :
65
+ files : ./coverage.xml
66
+ flags : unittests
67
+ env_vars : OS,PYTHON
68
+ name : codecov-umbrella
69
+ fail_ci_if_error : true
Original file line number Diff line number Diff line change 5
5
/.venv *
6
6
/var
7
7
/dist
8
+ .coverage
9
+ coverage.xml
Original file line number Diff line number Diff line change @@ -6,7 +6,10 @@ profile = "black"
6
6
src_paths = [" grafana_wtf" , " tests" ]
7
7
8
8
[tool .pytest .ini_options ]
9
- addopts = " -ra -q --verbosity=3 --doctest-modules"
9
+ addopts = """
10
+ -ra -q --verbosity=3 --doctest-modules
11
+ --cov --cov-report=term-missing --cov-report=xml
12
+ """
10
13
minversion = " 2.0"
11
14
log_level = " DEBUG"
12
15
log_cli_level = " DEBUG"
@@ -15,3 +18,13 @@ testpaths = [
15
18
" tests" ,
16
19
]
17
20
xfail_strict = true
21
+
22
+ [tool .coverage .run ]
23
+ branch = false
24
+ source = [" grafana_wtf" ]
25
+
26
+ [tool .coverage .report ]
27
+ fail_under = 0
28
+ show_missing = true
29
+ omit = [
30
+ ]
Original file line number Diff line number Diff line change 34
34
extras = {
35
35
"test" : [
36
36
"pytest<9" ,
37
+ "pytest-cov<6" ,
37
38
"lovely-pytest-docker<1" ,
38
39
"grafanalib==0.7.0" ,
39
40
]
You can’t perform that action at this time.
0 commit comments