Skip to content

Commit 5aee9cf

Browse files
Matrix lint workflow by hook stage (#1947)
1 parent cff3000 commit 5aee9cf

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.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

@@ -41,10 +42,8 @@ jobs:
4142
# Use bash to ensure the step fails if any command fails.
4243
# PowerShell does not fail on intermediate command failures by default.
4344
shell: bash
44-
run: |
45-
uv run --extra=dev prek run --all-files --hook-stage pre-commit --verbose
46-
uv run --extra=dev prek run --all-files --hook-stage pre-push --verbose
47-
uv run --extra=dev prek run --all-files --hook-stage manual --verbose
45+
run: uv run --extra=dev prek run --all-files --hook-stage ${{ matrix.hook-stage }}
46+
--verbose
4847
env:
4948
UV_PYTHON: ${{ matrix.python-version }}
5049
# hadolint is not available on Windows.

0 commit comments

Comments
 (0)