From fd2c94812e40f9d1371f564e3757df1c741fa71e Mon Sep 17 00:00:00 2001 From: pozsa Date: Wed, 26 Jan 2022 16:14:51 +0100 Subject: [PATCH] Fix incorrect test coverage reporting https://github.com/nedbat/coveragepy/issues/1082 --- .github/workflows/test-backend.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-backend.yaml b/.github/workflows/test-backend.yaml index 94d422f1..3f764d38 100644 --- a/.github/workflows/test-backend.yaml +++ b/.github/workflows/test-backend.yaml @@ -42,7 +42,11 @@ 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.