Skip to content

Commit

Permalink
ci(coverage): update coverage configs to focus the MR output
Browse files Browse the repository at this point in the history
  • Loading branch information
samoehlert committed Nov 14, 2024
1 parent 5db525f commit 81152c3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ jobs:
uses: 5monkeys/cobertura-action@v14
with:
minimum_coverage: '50'
only_changed_files: 'true'

- name: Stop Services
if: always()
Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 0 additions & 6 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 81152c3

Please sign in to comment.