Skip to content

Commit bba875c

Browse files
committed
Show coverage report as action job summary
Closes #9
1 parent 09e95de commit bba875c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ci.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,12 @@ jobs:
7171
with:
7272
name: coverage-data
7373

74-
- name: Combine coverage and fail if less than threshold.
74+
- name: Combine coverage, create reports and fail if less than threshold.
7575
run: |
7676
python -m coverage combine
77-
python -m coverage html --skip-empty # --skip-covered
77+
python -m coverage html --skip-empty
78+
echo '## Test Coverage Report\n' >> $GITHUB_STEP_SUMMARY
79+
poetry run coverage report --format=markdown >> $GITHUB_STEP_SUMMARY
7880
python -m coverage report --fail-under=94
7981
8082
- name: Upload HTML report

0 commit comments

Comments
 (0)