From 5e459c23909aadecf8e89dcf8ee9c2479bb7f3e9 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Wed, 3 May 2023 23:29:49 -0700 Subject: [PATCH] Expand python coverage, use coveragerc. --- .coveragerc | 4 ++++ .github/workflows/test.yml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.coveragerc b/.coveragerc index 06e4886d..c36f6ab7 100644 --- a/.coveragerc +++ b/.coveragerc @@ -2,3 +2,7 @@ exclude_lines = pragma: no cover if TYPE_CHECKING: + +[run] +branch = True +source = game,pydcs_extensions,qt_ui,resources/tools diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f28f1287..b8adbb88 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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