File tree Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 66
66
python -m pip install poetry poetry-dynamic-versioning
67
67
poetry install --with dev,docs -v
68
68
- name : Run pytest
69
- run : poetry run poe test --cov=./ --cov-report=xml -ra .
69
+ run : poetry run poe coverage
70
70
- name : Upload coverage to Codecov
71
71
continue-on-error : true
72
72
uses : codecov/codecov-action@v3
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ pip-wheel-metadata
55
55
# Tests artifacts
56
56
.coverage *
57
57
htmlcov /
58
+ coverage.xml
58
59
59
60
# macOS
60
61
.DS_Store
Original file line number Diff line number Diff line change @@ -81,8 +81,8 @@ script = "devtasks:clean"
81
81
help = " remove build/python artifacts"
82
82
83
83
[tool .poe .tasks .coverage ]
84
- cmd = " pytest -- cov- report html --cov copier copier tests "
85
- help = " generate an HTML report of the coverage"
84
+ cmd = " pytest -p pytest_cov -- cov --cov- report= html --cov-report=xml --cov-append "
85
+ help = " generate an HTML+XML report of the coverage"
86
86
87
87
[tool .poe .tasks .dev-setup ]
88
88
script = " devtasks:dev_setup"
@@ -128,10 +128,23 @@ add_ignore = ["D105", "D107"]
128
128
129
129
[tool .pytest .ini_options ]
130
130
addopts = " -n auto -ra"
131
+ testpaths = [
132
+ " copier/" ,
133
+ " tests/" ,
134
+ ]
131
135
markers = [
132
136
" impure: needs network or is not 100% reproducible"
133
137
]
134
138
139
+ [tool .coverage .run ]
140
+ source = [
141
+ " copier/" ,
142
+ " tests/" ,
143
+ ]
144
+ omit = [
145
+ " */demo*/*" ,
146
+ ]
147
+
135
148
[tool .commitizen ]
136
149
annotated_tag = true
137
150
changelog_incremental = true
You can’t perform that action at this time.
0 commit comments