diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f4c94be57..c6f0c8074 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -19,6 +19,7 @@ jobs: matrix: python-version: ['3.13'] platform: [ubuntu-latest, windows-latest] + hook-stage: [pre-commit, pre-push, manual] runs-on: ${{ matrix.platform }} @@ -37,10 +38,8 @@ jobs: # Use bash to ensure the step fails if any command fails. # PowerShell does not fail on intermediate command failures by default. shell: bash - run: | - uv run --extra=dev prek run --all-files --hook-stage pre-commit --verbose - uv run --extra=dev prek run --all-files --hook-stage pre-push --verbose - uv run --extra=dev prek run --all-files --hook-stage manual --verbose + run: uv run --extra=dev prek run --all-files --hook-stage ${{ matrix.hook-stage }} + --verbose env: UV_PYTHON: ${{ matrix.python-version }}