Skip to content

Commit a10d869

Browse files
authored
fix(action): correct output formatting and select/ignore (#700)
* fix(action): correct output formatting and select/ignore Signed-off-by: Henry Schreiner <[email protected]> * ci: faster, check action.yml too Signed-off-by: Henry Schreiner <[email protected]> --------- Signed-off-by: Henry Schreiner <[email protected]>
1 parent 9029aaf commit a10d869

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

.github/workflows/reusable-change-detection.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ jobs:
5151
filter: |
5252
.github/workflows/ci.yml
5353
.github/workflows/reusable-rr-tests.yml
54+
action.yml
5455
README.md
5556
noxfile.py
5657
pyproject.toml

.github/workflows/reusable-cookie.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,13 @@ jobs:
9090
- name: Test meson-python
9191
run: nox -s 'tests(mesonpy, novcs, sphinx)'
9292

93+
# No need to check this on each (slow on Windows)
9394
- name: Compare copier template generation
94-
if: runner.os == 'Linux' # No need to check this on each (slow on Windows)
95+
if: runner.os == 'Linux' && !startsWith(matrix.python-version, 'pypy')
9596
run: nox -s compare_copier
9697

9798
- name: Compare cruft template generation
98-
if: runner.os == 'Linux' # No need to check this on each (slow on Windows)
99+
if: runner.os == 'Linux' && !startsWith(matrix.python-version, 'pypy')
99100
run: nox -s compare_cruft
100101

101102
nox:

action.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,29 @@
11
name: sp-repo-review
22
description: "Runs sp-repo-review"
3+
branding:
4+
icon: package
5+
color: blue
36
inputs:
47
package-dir:
58
description: "Path to Python package, if different from repo root"
69
required: false
710
default: ""
11+
select:
12+
description: "Checks to select, overrides pyproject.toml"
13+
required: false
14+
default: ""
15+
ignore:
16+
description: "Checks to ignore, overrides pyproject.toml"
17+
required: false
18+
default: ""
819

920
runs:
1021
using: composite
1122
steps:
1223
- uses: actions/setup-python@v6
1324
id: python
1425
with:
15-
python-version: "3.12"
26+
python-version: "3.13"
1627
update-environment: false
1728

1829
# prettier-ignore
@@ -23,7 +34,8 @@ runs:
2334
--python '${{ steps.python.outputs.python-path }}'
2435
--spec '${{ github.action_path }}[cli]'
2536
repo-review .
26-
--stderr html
37+
--format html
38+
--stderr rich
2739
--select "${{ inputs.select }}"
2840
--ignore "${{ inputs.ignore }}"
2941
--package-dir "${{ inputs.package-dir }}"

0 commit comments

Comments
 (0)