-
Notifications
You must be signed in to change notification settings - Fork 2
/
action.yml
43 lines (43 loc) · 1.19 KB
/
action.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
39
40
41
42
43
name: 'Upload to codecov.io'
description: 'Uploade python coverage prepared by aio-libs/prepare-coverage action to codecov.io'
inputs:
artifact:
description: 'The artifact name to load coverage chunks from'
required: false
default: 'coverage'
fail_ci_if_error:
description: 'Fail CI if error'
required: false
default: true
token:
description: 'Codecov token'
required: false
default: ''
runs:
using: "composite"
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
pattern: "${{ inputs.artifact }}-*"
merge-multiple: true
path: ${{ runner.temp }}/coverage
- name: Install coverage
run: |
pip install coverage
shell: bash
- name: Combine coverage reports
run: |
coverage combine ${{ runner.temp }}/coverage
shell: bash
- name: Generate XML coverage report
run: |
coverage xml
shell: bash
- name: Upload coverage
uses: codecov/codecov-action@v4
with:
files: coverage.xml
fail_ci_if_error: ${{ inputs.fail_ci_if_error }}
token: ${{ inputs.token }} # required
verbose: true # (default = false)