-
Notifications
You must be signed in to change notification settings - Fork 74
Expand file tree
/
Copy pathaction.yml
More file actions
48 lines (46 loc) · 1.27 KB
/
Copy pathaction.yml
File metadata and controls
48 lines (46 loc) · 1.27 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
name: sp-repo-review
description: "Runs sp-repo-review"
branding:
icon: package
color: blue
inputs:
package-dir:
description: "Path to Python package, if different from repo root"
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.13"
update-environment: false
- name: Run repo-review
shell: bash
# Pass expansions through the environment to avoid template injection
env:
PYTHON_PATH: ${{ steps.python.outputs.python-path }}
ACTION_PATH: ${{ github.action_path }}
SELECT: ${{ inputs.select }}
IGNORE: ${{ inputs.ignore }}
PACKAGE_DIR: ${{ inputs.package-dir }}
run: >
pipx run
--python "$PYTHON_PATH"
--spec "$ACTION_PATH[cli]"
repo-review .
--format html
--stderr rich
--select "$SELECT"
--ignore "$IGNORE"
--package-dir "$PACKAGE_DIR"
>> "$GITHUB_STEP_SUMMARY"