-
Notifications
You must be signed in to change notification settings - Fork 58
35 lines (33 loc) · 1.05 KB
/
submit-PR-coverage.yaml
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
name: PR code coverage measurement on codecov.io
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
continue-on-error: true
name: Submit code coverage from Packit tests
defaults:
run:
working-directory: scripts
steps:
- uses: actions/checkout@v4
- name: Wait for Packit tests to finish and download e2e_coverage.txt and upstream_coverage.xml files.
run: ./download_packit_coverage.sh
env:
MAX_DURATION: 5400
SLEEP_DELAY: 120
- name: List downloaded files.
run: ls
- name: Upload e2e_coverage.txt report to Codecov with GitHub Action.
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: scripts/e2e_coverage.txt
flags: e2e-testsuite
- name: Upload upstream_coverage.xml report to Codecov with GitHub Action.
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: scripts/upstream_coverage.xml
flags: upstream-unit-tests