From af833f66828b03ac212306445cfd3a434d966454 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 | 8 ++++++++ .github/workflows/test.yml | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .coveragerc diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 00000000..c36f6ab7 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,8 @@ +[report] +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