Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incorrect test coverage reporting #63

Merged
merged 2 commits into from Jan 27, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/test-backend.yaml
@@ -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
minottic marked this conversation as resolved.
Show resolved Hide resolved
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