Skip to content

Commit 56faf0f

Browse files
committed
Add coverage summary
1 parent 7078342 commit 56faf0f

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,3 +178,24 @@ jobs:
178178
# add -i to ignore parsed code of temp files.
179179
coverage report -i
180180
coverage xml -i
181+
182+
- name: Code Coverage Report
183+
uses: irongut/[email protected]
184+
with:
185+
# Alternatively use one file per python version
186+
filename: coverage.xml
187+
badge: true
188+
fail_below_min: false
189+
format: markdown
190+
hide_branch_rate: false
191+
hide_complexity: true
192+
indicators: true
193+
output: both
194+
thresholds: '80 90'
195+
196+
- name: Add Coverage PR Comment
197+
uses: marocchino/sticky-pull-request-comment@v2
198+
if: github.event_name == 'pull_request'
199+
with:
200+
recreate: true
201+
path: code-coverage-results.md

0 commit comments

Comments
 (0)