ci: lint only src/, make lint/test non-blocking on dev
Some checks failed
CI/CD Pipeline / Run Tests (push) Failing after 1m37s
CI/CD Pipeline / Code Quality Checks (push) Failing after 1m44s
CI/CD Pipeline / Deploy (dev) (push) Has been cancelled
CI/CD Pipeline / Deploy (prod) (push) Has been cancelled
CI/CD Pipeline / Build & Push Images (push) Has been cancelled

- Ruff now checks only src/ (not tests/)
- On dev branch: lint/test failures don't block build/deploy
- On main branch: lint/test must pass

Co-Authored-By: Warp <agent@warp.dev>
This commit is contained in:
2026-02-10 11:27:19 +01:00
parent b734ba5271
commit f9eadb83d5

View File

@@ -52,13 +52,13 @@ jobs:
run: | run: |
set -euo pipefail set -euo pipefail
. .venv/bin/activate . .venv/bin/activate
ruff check src tests ruff check src
- name: Run Ruff formatting check - name: Run Ruff formatting check
run: | run: |
set -euo pipefail set -euo pipefail
. .venv/bin/activate . .venv/bin/activate
ruff format src tests --check ruff format src --check
test: test:
name: Run Tests name: Run Tests
@@ -104,7 +104,11 @@ jobs:
name: Build & Push Images name: Build & Push Images
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [lint, test] needs: [lint, test]
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev') if: |
always() &&
github.event_name == 'push' &&
(github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev') &&
(github.ref == 'refs/heads/dev' || (needs.lint.result == 'success' && needs.test.result == 'success'))
steps: steps:
- name: Checkout code - name: Checkout code