forked from caas-team/py-kube-downscaler
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 986 Bytes
/
coverage-report.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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@v7
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