Skip to content

Commit

Permalink
added coverage configuration to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislupp committed Mar 18, 2024
1 parent 8d44b46 commit 6582630
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ jobs:
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Run Unit Tests with Coverage
run: |
python -m coverage run --omit=philote_mdo/generated -m unittest discover -v -s philote_mdo/tests -p 'test_*.py'
python -m coverage run
- name: Coveralls
uses: coverallsapp/github-action@v2
with:
Expand Down
19 changes: 18 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,21 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry.build]
generate-setup-file = false
script = "utils/compile_proto.py"
script = "utils/compile_proto.py"


[tool.coverage.run]
branch = true
include = ["philote_mdo/*"]
omit = ["*__init__*", "philote_mdo/generated/*"]
command_line = "-m unittest discover -s tests/"


[tool.coverage.report]
fail_under = 80

ignore_errors = true


[tool.coverage.html]
directory = "coverage_html_report"

0 comments on commit 6582630

Please sign in to comment.