Skip to content

Commit

Permalink
add coverage report artifact and minimum coverage (#69)
Browse files Browse the repository at this point in the history
* add coverage report artifact

* add fail under
  • Loading branch information
shapiromatron authored Oct 17, 2024
1 parent 66611d0 commit 21f5538
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ jobs:
coverage run -m pytest --record-mode=none
echo "# Python coverage report" >> $GITHUB_STEP_SUMMARY
coverage report --format=markdown >> $GITHUB_STEP_SUMMARY
coverage html -d coverage -i
- name: Upload pybmds wheel
uses: actions/upload-artifact@v4
with:
Expand All @@ -85,6 +86,12 @@ jobs:
venv/dist
venv/tools
retention-days: 1
- name: Upload Coverage Report
uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage
retention-days: 14

frontend:
name: frontend
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ exclude_also = [
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
fail_under=91.3
precision=1

[tool.coverage.run]
omit = [
Expand Down

0 comments on commit 21f5538

Please sign in to comment.