ci: report pytest coverage in PR via codecov

Fixes: #1915
This commit is contained in:
Kyle Robbertze 2022-06-24 20:47:23 +02:00 committed by Jonas L
parent d946497336
commit 7ff0aff70a
2 changed files with 7 additions and 1 deletions

View File

@ -77,3 +77,9 @@ jobs:
- name: Test
run: make test
working-directory: ${{ inputs.context }}
- name: Report coverage
uses: codecov/codecov-action@v3
with:
files: ${{ inputs.context }}/coverage.xml
name: ${{ inputs.context }}

View File

@ -63,7 +63,7 @@ install: $(VENV)
.PHONY: .pytest
.pytest: $(VENV)
source $(VENV)/bin/activate
pytest -n $(CPU_CORES) --color=yes -v $(PYTEST_ARG)
pytest -n $(CPU_CORES) --color=yes -v --cov-report term --cov-report xml:./coverage.xml $(PYTEST_ARG)
.PHONY: .clean
.clean: