Skip to content

Commit

Permalink
Fix incorrect test coverage reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
pozsa committed Jan 27, 2022
1 parent 30de34f commit 8558d6e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/test-backend.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: Test Backend

on:
Expand Down Expand Up @@ -42,12 +43,16 @@ jobs:
VERSION: test
RELEASEID: test
run: |
python -m pytest --cov=app --cov-report=xml
coverage run --concurrency=thread,greenlet --source=app -m pytest
coverage xml
# https://github.com/nedbat/coveragepy/issues/1082
# pytest-cov doesn't seem to support the `concurrency` flag so
# using coverage commands

- name: Codecov
# You may pin to the exact commit or the version.
# uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b
uses: codecov/codecov-action@v2
with:
# Flag upload to group coverage metrics (e.g. unittests | integration | ui,chrome)
# Flag upload to group coverage metrics (e.g. unittests, integration)
flags: backend # optional

0 comments on commit 8558d6e

Please sign in to comment.