diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3086bacd..31607d18 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,5 +1,4 @@ --- - name: Lint on: @@ -16,7 +15,6 @@ permissions: {} jobs: build: - strategy: matrix: python-version: ['3.13'] @@ -40,12 +38,17 @@ jobs: cache-dependency-glob: '**/pyproject.toml' - name: Lint + # 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 env: UV_PYTHON: ${{ matrix.python-version }} + # hadolint is not available on Windows. + SKIP: ${{ runner.os == 'Windows' && 'hadolint' || '' }} - uses: pre-commit-ci/lite-action@v1.1.0 if: always()