diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9317c6ea..d3bf5465 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 diff --git a/pyproject.toml b/pyproject.toml index e63f49ff..7288ceef 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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:",