-
Notifications
You must be signed in to change notification settings - Fork 3
/
action.yml
47 lines (44 loc) · 1.19 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
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@v5
id: python
with:
python-version: "3.12"
update-environment: false
- name: Install repo-review and plugins
shell: bash
run: |
pipx install --python '${{ steps.python.outputs.python-path }}' '${{ github.action_path }}[cli]'
pipx inject repo-review ${{ inputs.plugins }}
- name: Run repo-review
shell: bash
run: >
repo-review .
--format html
--stderr rich
--select "${{ inputs.select }}"
--ignore "${{ inputs.ignore }}"
--package-dir "${{ inputs.package-dir }}"
>> $GITHUB_STEP_SUMMARY