adding code coverage to test execution

This commit is contained in:
msramalho
2024-10-17 16:44:32 +01:00
parent 036049fdc3
commit 879c0cb879
5 changed files with 93 additions and 4 deletions

View File

@@ -36,6 +36,10 @@ jobs:
run: pipenv install --dev
working-directory: src
- name: Run tests
run: PYTHONPATH=. pipenv run pytest -v --color=yes tests/
- name: Run tests with coverage
run: PYTHONPATH=. pipenv run coverage run -m pytest -v --color=yes tests/
working-directory: src
- name: Report coverage
run: pipenv run coverage report
working-directory: src