-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathaction.yml
35 lines (32 loc) · 841 Bytes
/
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
name: coverage.py badge
description: Generate a coverage.py badge
author: tj-actions
inputs:
output:
description: 'Output path to write the coverage badge.'
required: false
default: 'coverage.svg'
overwrite:
description: 'Overwrite an existing coverage badge.'
required: false
default: 'true'
working-directory:
description: 'Current working directory'
required: false
default: '.'
runs:
using: 'composite'
steps:
- id: coverage-badge
working-directory: ${{ inputs.working-directory }}
run: |
pip install -U coverage-badge
EXTRA_ARGS=""
if [[ '${{ inputs.overwrite }}' == 'true' ]]; then
EXTRA_ARGS+="-f"
fi
coverage-badge $EXTRA_ARGS -o "${{ inputs.output }}"
shell: bash
branding:
icon: check-circle
color: white