-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathaction.yml
More file actions
58 lines (55 loc) · 1.57 KB
/
Copy pathaction.yml
File metadata and controls
58 lines (55 loc) · 1.57 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: repo-review
description: "Runs repo-review"
branding:
icon: package
color: blue
inputs:
plugins:
description: "Plugins to install, exactly as would be passed to pip install"
required: true
package-dir:
description: 'Input directory, defaults to "."'
required: false
default: ""
select:
description: "Checks to select, overrides pyproject.toml"
required: false
default: ""
ignore:
description: "Checks to ignore, overrides pyproject.toml"
required: false
default: ""
runs:
using: composite
steps:
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
id: python
with:
python-version: "3.14"
update-environment: false
- name: Install repo-review and plugins
shell: bash
env:
PYTHON_PATH: ${{ steps.python.outputs.python-path }}
ACTION_PATH: ${{ github.action_path }}
PLUGINS: ${{ inputs.plugins }}
run: |
pipx install --python "$PYTHON_PATH" "${ACTION_PATH}[cli]"
# PLUGINS is a space-separated list of requirements, so word splitting
# is intentional here.
# shellcheck disable=SC2086
pipx inject repo-review $PLUGINS
- name: Run repo-review
shell: bash
env:
SELECT: ${{ inputs.select }}
IGNORE: ${{ inputs.ignore }}
PACKAGE_DIR: ${{ inputs.package-dir }}
run: >
repo-review .
--format html
--stderr rich
--select "$SELECT"
--ignore "$IGNORE"
--package-dir "$PACKAGE_DIR"
>> "$GITHUB_STEP_SUMMARY"