Skip to content

Commit 7b96b39

Browse files
authored
Fix coverage report and add coverage target (#303)
Coverage on CI was not configured for its use of multiprocessing.
1 parent 22444bc commit 7b96b39

3 files changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ jobs:
4444
jobs="${{ matrix.mutations == true && '1' || 'auto' }}"
4545
docker compose exec python-api coverage run -m pytest -n "$jobs" -v -m "$marker"
4646
- name: Produce coverage report
47-
run: docker compose exec python-api coverage xml
47+
run: |
48+
docker compose exec python-api coverage combine
49+
docker compose exec python-api coverage xml
4850
- name: Upload results to Codecov
4951
uses: codecov/codecov-action@v4
5052
with:

codecov.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
coverage:
2+
status:
3+
project:
4+
default:
5+
target: auto
6+
patch:
7+
default:
8+
target: 100%

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ docs = [
4747

4848
[tool.coverage.run]
4949
branch=true
50+
concurrency=["multiprocessing"]
51+
parallel=true
5052

5153
[tool.coverage.report]
5254
show_missing=true

0 commit comments

Comments
 (0)