Skip to content

Commit

Permalink
coverage report creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Fovty committed Jun 4, 2024
1 parent 27591f0 commit f0e49bc
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/coverage-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Coverage Report

on:
workflow_run:
workflows: ["Python Tests"]
types:
- completed

permissions:
contents: read
issues: write
checks: write
pull-requests: write

jobs:
coverage:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.event == 'pull_request' }}

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.workflow_run.head_commit.id }}
- name: Download Coverage Artifacts
uses: dawidd6/action-download-artifact@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
workflow: ${{ github.event.workflow_run.workflow_id }}
commit: ${{ github.event.workflow_run.head_commit.id }}
name: coverage
path: coverage
- name: Produce Coverage report
uses: 5monkeys/cobertura-action@master
with:
path: coverage/coverage.xml
minimum_coverage: 70
skip_covered: false

0 comments on commit f0e49bc

Please sign in to comment.