-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (28 loc) · 873 Bytes
/
coverage.yml
File metadata and controls
37 lines (28 loc) · 873 Bytes
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
name: CodeCov
on:
workflow_run:
workflows: [Python application]
types: [completed]
jobs:
on-success:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- run: echo 'The triggering workflow passed'
- name: Retrieve Coverage Artifact
uses: dawidd6/action-download-artifact@v2
with:
name: coverage-report
workflow: ${{ github.event.workflow_run.workflow_id }}
path: reports/coverage
- name: Upload Coverage
uses: codecov/codecov-action@v3
with:
files: reports/coverage/coverage.xml
env_vars: OS,PYTHON
fail_ci_if_error: true
on-failure:
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
runs-on: ubuntu-latest
steps:
- run: echo 'The triggering workflow failed'