forked from orgoro/coverage
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
34 lines (34 loc) · 1.02 KB
/
action.yml
File metadata and controls
34 lines (34 loc) · 1.02 KB
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
name: 'Python Coverage'
description: 'Publish coverage report to a PR & enforce coverage on new & modified files'
author: 'orgoro'
inputs:
coverageFile:
required: true
description: 'local path to a coverage xml file like the output of pytest --cov'
token:
required: true
description: 'github token'
diffCoverageFile:
required: false
description: 'local path to a diff coverage xml file like the output of diff-cover coverage.xml'
thresholdAll:
required: false
description: the coverage threshold for average over all files [0,1]
default: 0.0
thresholdNew:
required: false
description: the coverage threshold for average over new files [0,1]
default: 0.0
thresholdModified:
required: false
description: the coverage threshold for average over new files [0,1]
default: 0.0
sourceDir:
required: false
description: the directory to use as the source of the coverage report
runs:
using: 'node20'
main: 'dist/index.js'
branding:
icon: 'umbrella'
color: 'purple'