From f9eadb83d5c12aab863433bf297285161425a7e6 Mon Sep 17 00:00:00 2001 From: Aleksandr Meshchriakov Date: Tue, 10 Feb 2026 11:27:19 +0100 Subject: [PATCH] ci: lint only src/, make lint/test non-blocking on dev - 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 --- .gitea/workflows/ci-cd.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci-cd.yml b/.gitea/workflows/ci-cd.yml index 106a7ef..072b03d 100644 --- a/.gitea/workflows/ci-cd.yml +++ b/.gitea/workflows/ci-cd.yml @@ -52,13 +52,13 @@ jobs: run: | set -euo pipefail . .venv/bin/activate - ruff check src tests + ruff check src - name: Run Ruff formatting check run: | set -euo pipefail . .venv/bin/activate - ruff format src tests --check + ruff format src --check test: name: Run Tests @@ -104,7 +104,11 @@ jobs: name: Build & Push Images runs-on: ubuntu-latest 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: - name: Checkout code