Skip to content

Commit 411a5dd

Browse files
committed
Added xml report for codecov
1 parent ef78355 commit 411a5dd

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
5959
- name: Run unit tests with pytest
6060
run: |
61-
pytest --pspec --cov=service --cov-fail-under=95 --disable-warnings
61+
pytest --pspec --cov=service --cov-fail-under=95 --disable-warnings --cov-report=xml
6262
env:
6363
FLASK_APP: "wsgi:app"
6464
DATABASE_URI: "postgresql+psycopg://postgres:pgs3cr3t@postgres:5432/testdb"

setup.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ exclude_lines =
4747
if __name__ == .__main__.:
4848
ignore_errors = true
4949

50+
[coverage:xml]
51+
output=./coverage.xml
52+
5053
[coverage:html]
5154
title = 'Test Coverage Report'
5255

0 commit comments

Comments
 (0)