Skip to content

Commit

Permalink
add(pythonindia#751): add coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
indiVar0508 committed Jul 2, 2023
1 parent 4226a05 commit fbc3287
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
branches:
- master # Only run when PR is raised for master

permissions:
pull-requests: write # for writting comment for coverage

# This ensures for a single PR one job is run in case of multiple runs
concurrency:
group: build-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand All @@ -21,3 +24,22 @@ jobs:
# Run Tests
- name: Run Tests
run: docker-compose -f "docker-compose.test.yml" up --build
# Code Coverage
- name: Code Coverage Report
uses: irongut/[email protected]
with:
filename: ./temp/testresults/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

0 comments on commit fbc3287

Please sign in to comment.