Skip to content

Commit 74763f3

Browse files
committed
Matrix lint workflow by hook stage
1 parent 83479cf commit 74763f3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/lint.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
matrix:
2020
python-version: ['3.13']
2121
platform: [ubuntu-latest, windows-latest]
22+
hook-stage: [pre-commit, pre-push, manual]
2223

2324
runs-on: ${{ matrix.platform }}
2425

@@ -37,10 +38,8 @@ jobs:
3738
# Use bash to ensure the step fails if any command fails.
3839
# PowerShell does not fail on intermediate command failures by default.
3940
shell: bash
40-
run: |
41-
uv run --extra=dev prek run --all-files --hook-stage pre-commit --verbose
42-
uv run --extra=dev prek run --all-files --hook-stage pre-push --verbose
43-
uv run --extra=dev prek run --all-files --hook-stage manual --verbose
41+
run: uv run --extra=dev prek run --all-files --hook-stage ${{ matrix.hook-stage }}
42+
--verbose
4443
env:
4544
UV_PYTHON: ${{ matrix.python-version }}
4645

0 commit comments

Comments
 (0)