From 81152c3443d1e4e455f3cb6ad9d8d4f4904bb03b Mon Sep 17 00:00:00 2001 From: Sam Oehlert Date: Thu, 14 Nov 2024 10:29:24 -0600 Subject: [PATCH] ci(coverage): update coverage configs to focus the MR output --- .github/workflows/pytest.yml | 1 + pyproject.toml | 4 +++- setup.cfg | 6 ------ 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 0073cd2e..5930abfb 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -69,6 +69,7 @@ jobs: uses: 5monkeys/cobertura-action@v14 with: minimum_coverage: '50' + only_changed_files: 'true' - name: Stop Services if: always() diff --git a/pyproject.toml b/pyproject.toml index 54476b25..f5e74ec1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,10 +9,12 @@ python_files = [ # ==== Coverage ==== [tool.coverage.run] -omit = ["*/migrations/*", "*/tests/*"] +include = ["scram/*", "config/*", "translator/*"] +omit = ["**/migrations/*", "scram/contrib/*", "*/tests/*"] plugins = ["django_coverage_plugin"] + # ==== black ==== [tool.black] line-length = 119 diff --git a/setup.cfg b/setup.cfg index 84ec37bb..2c082581 100644 --- a/setup.cfg +++ b/setup.cfg @@ -24,12 +24,6 @@ django_settings_module = config.settings.test # Django migrations should not produce any errors: ignore_errors = True -[coverage:run] -include = scram/* -omit = *migrations*, *tests* -plugins = - django_coverage_plugin - [behave] paths = scram/route_manager/tests/acceptance stderr_capture = no