forked from JackMcKew/python-interrogate-check
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yaml
48 lines (47 loc) · 1.36 KB
/
action.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
36
37
38
39
40
41
42
43
44
45
46
47
48
# action.yaml
name: 'Python Interrogate Check'
description: 'Customisable GitHub action to use interrogate to check Python docstring coverage in your repository'
branding:
icon: 'book-open'
color: 'blue'
inputs:
path:
description: 'File or directory to run interrogate on.'
required: True
fail-under:
description: 'Fail when coverage % is less than a given amount.'
required: false
default: '80'
ignore-module:
description: 'Ignore module-level docstrings'
required: false
default: false
# exclude:
# description: 'Exclude PATHs of files and/or directories.'
# required: false
# ignore-init-method:
# description: 'Ignore `__init__` method of classes.'
# required: false
# default: 'False'
# ignore-init-module:
# description: 'Ignore `__init__.py` modules.'
# required: false
# default: 'False'
badge-location:
description: 'Generate a `shields.io` status badge (an SVG image) in at a given file or directory.'
required: false
default: '.'
outputs:
output:
description: 'The output of interrogate.'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.path }}
- ${{ inputs.fail-under }}
# - ${{ inputs.exclude }}
# - ${{ inputs.ignore-init-method }}
# - ${{ inputs.ignore-init-module }}
- ${{ inputs.badge-location }}
- ${{ inputs.ignore-module }}