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