Skip to content

Commit

Permalink
Merge pull request #9 from m-tmatma/feature/coverage-comment
Browse files Browse the repository at this point in the history
Add Coverage PR Comment
  • Loading branch information
m-tmatma authored Apr 21, 2024
2 parents bd4067e + 7067b2a commit 9877448
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/pytest-pytest-coverage-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,23 @@ jobs:
path: |
./coverage.xml
./pytest.xml
- name: Code Coverage Report
uses: irongut/CodeCoverageSummary@v1.3.0
with:
filename: coverage.xml
badge: true
fail_below_min: true
format: markdown
hide_branch_rate: false
hide_complexity: true
indicators: true
output: both
thresholds: '60 80'

- name: Add Coverage PR Comment
uses: marocchino/sticky-pull-request-comment@v2
if: github.event_name == 'pull_request'
with:
recreate: true
path: code-coverage-results.md

1 comment on commit 9877448

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
tests
   conftest.py60100% 
   test_app.py80100% 
   test_dynamic_param.py150100% 
   test_requests.py110100% 
TOTAL400100% 

Tests Skipped Failures Errors Time
46 0 💤 0 ❌ 0 🔥 0.325s ⏱️

Please sign in to comment.