Skip to content

Commit ea7595b

Browse files
authored
Merge pull request #564 from python-attrs/coverage-md
Use Markdown for coverage table
2 parents 76e218a + 9ec4b49 commit ea7595b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ jobs:
6161
- name: "Combine coverage"
6262
run: |
6363
python -Im coverage combine
64-
python -Im coverage html --skip-covered --skip-empty
64+
python -Im coverage html
6565
python -Im coverage json
6666
6767
# Report and write to summary.
68-
python -Im coverage report --skip-covered --skip-empty | sed 's/^/ /' >> $GITHUB_STEP_SUMMARY
68+
python -Im coverage report --format=markdown >> $GITHUB_STEP_SUMMARY
6969
7070
export TOTAL=$(python -c "import json;print(json.load(open('coverage.json'))['totals']['percent_covered_display'])")
7171
echo "total=$TOTAL" >> $GITHUB_ENV

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ parallel = true
106106
source_pkgs = ["cattrs", "tests"]
107107

108108
[tool.coverage.report]
109+
show_missing = true
110+
skip_covered = true
111+
skip_empty = true
109112
exclude_also = [
110113
"@overload",
111114
"if TYPE_CHECKING:",

0 commit comments

Comments
 (0)