Skip to content

Commit a621a05

Browse files
author
Sergey Vilgelm
committed
Always generate xml report for cover task
1 parent 49bfc98 commit a621a05

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ jobs:
6363
run: inv cover qa
6464
- name: Codecov
6565
uses: codecov/codecov-action@v1
66+
with:
67+
file: ./coverage.xml
6668
bench:
6769
needs: unit-tests
6870
runs-on: ubuntu-latest

tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def cover(ctx, html=False):
145145
extra = "--cov-report html" if html else ""
146146
with ctx.cd(ROOT):
147147
ctx.run(
148-
"pytest --benchmark-skip --cov flask_restx --cov-report term {0}".format(
148+
"pytest --benchmark-skip --cov flask_restx --cov-report term --cov-report xml {0}".format(
149149
extra
150150
),
151151
pty=True,

0 commit comments

Comments
 (0)