From 5827bf17adb402163d0dba05c80ba7ef58b516c1 Mon Sep 17 00:00:00 2001 From: Adam Dangoor Date: Thu, 22 Jan 2026 17:38:02 +0000 Subject: [PATCH 1/2] Use bash shell for Lint step to ensure early failure PowerShell does not fail on intermediate command failures by default. By using bash shell, we ensure that any failing command causes the step to fail immediately. --- .github/workflows/lint.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3086bacd..59f14cc0 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,6 +38,9 @@ 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 From e0b9ed8e3266ac3a64d29833ebadf94ebffb71c9 Mon Sep 17 00:00:00 2001 From: Adam Dangoor Date: Thu, 22 Jan 2026 17:55:14 +0000 Subject: [PATCH 2/2] Skip hadolint on Windows hadolint is not available on Windows. --- .github/workflows/lint.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 59f14cc0..31607d18 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -47,6 +47,8 @@ jobs: 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()