generated from tweag/project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
48 lines (48 loc) · 1.41 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
44
45
46
47
48
name: 'FawltyDeps'
description: 'Check a Python project for _undeclared_ and _unused_ 3rd party dependencies'
# Inspired by and adapted from:
# https://github.com/psf/black/blob/main/action.yml
# https://github.com/isort/isort-action
inputs:
options:
description: "Options passed to fawltydeps. Use `fawltydeps --help` to see available options. Default:
''"
required: false
default: ""
fawltydeps-version:
description: Version of fawltydeps to use
required: false
default: null
requirements-files:
description: >
path(s) to requirements files that should be installed to properly
configure third-party imports
required: false
paths:
description: >
files or directories to scan for dependency issues
required: false
default: null
branding:
color: "purple"
icon: "check-circle"
outputs:
fawltydeps-result:
description: fawltydeps result
value: ${{ steps.run-fawltydeps.outputs.fawltydeps-output }}
runs:
using: composite
steps:
- run: $GITHUB_ACTION_PATH/bin/ensure_python
shell: bash
- run: >
$GITHUB_ACTION_PATH/bin/install_packages
${{ inputs.fawltydeps-version }}
${{ inputs.requirements-files || inputs.requirementsFiles }}
shell: bash
- id: run-fawltydeps
run: >
$GITHUB_ACTION_PATH/bin/run_fawltydeps
${{ inputs.options }}
${{ inputs.paths }}
shell: bash