Skip to content

Commit

Permalink
Run coverage in CI with % check of coverage. (#1945)
Browse files Browse the repository at this point in the history
  • Loading branch information
janiversen authored Jan 18, 2024
1 parent f7fff09 commit 531983f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ jobs:
- name: pytest
run: |
env
pytest -v --full-trace --timeout=1200
pytest -v --cov --full-trace --timeout=1200
analyze:
name: Analyze Python
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ build/
/pymodbus.egg-info/
venv
downloaded_files/
htmlcov/
11 changes: 8 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ asyncio_mode = "auto"
timeout = 40

[tool.coverage.run]
include = [
source = [
"examples/",
"pymodbus/",
"test/",
Expand All @@ -235,10 +235,15 @@ omit = ["examples/contrib/"]
[tool.coverage.report]
exclude_lines = [
"_check_system_health",
"if __name__ == .__main__.:",
"__main__",
]
skip_covered = true
fail_under = 86.0

[tool.coverage.html]
directory = "htmlcov"
skip_covered = true

ignore_errors = true

[tool.codespell]
skip = "./build,./doc/source/_static,venv,.venv,.git,htmlcov,CHANGELOG.rst,.mypy_cache"
Expand Down

0 comments on commit 531983f

Please sign in to comment.