Expand python coverage, use coveragerc.

This commit is contained in:
Dan Albert 2023-05-03 23:29:49 -07:00 committed by Raffson
parent 6de4df23b2
commit af833f6682
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99
2 changed files with 9 additions and 1 deletions

8
.coveragerc Normal file
View File

@ -0,0 +1,8 @@
[report]
exclude_lines =
pragma: no cover
if TYPE_CHECKING:
[run]
branch = True
source = game,pydcs_extensions,qt_ui,resources/tools

View File

@ -15,7 +15,7 @@ jobs:
- name: run tests
run: |
./venv/scripts/activate
pytest --cov game --cov-branch --cov-report=xml tests
pytest --cov-report=xml tests
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3