Skip to content

Commit

Permalink
Merge pull request #564 from python-attrs/coverage-md
Browse files Browse the repository at this point in the history
Use Markdown for coverage table
  • Loading branch information
hynek authored Jul 31, 2024
2 parents 76e218a + 9ec4b49 commit ea7595b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ jobs:
- name: "Combine coverage"
run: |
python -Im coverage combine
python -Im coverage html --skip-covered --skip-empty
python -Im coverage html
python -Im coverage json
# Report and write to summary.
python -Im coverage report --skip-covered --skip-empty | sed 's/^/ /' >> $GITHUB_STEP_SUMMARY
python -Im coverage report --format=markdown >> $GITHUB_STEP_SUMMARY
export TOTAL=$(python -c "import json;print(json.load(open('coverage.json'))['totals']['percent_covered_display'])")
echo "total=$TOTAL" >> $GITHUB_ENV
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ parallel = true
source_pkgs = ["cattrs", "tests"]

[tool.coverage.report]
show_missing = true
skip_covered = true
skip_empty = true
exclude_also = [
"@overload",
"if TYPE_CHECKING:",
Expand Down

0 comments on commit ea7595b

Please sign in to comment.