From fb2d1351870b689d68c80f8c4bfca6d58aa1e1b2 Mon Sep 17 00:00:00 2001 From: IluaAir Date: Fri, 12 Jun 2026 20:36:27 +0300 Subject: [PATCH] Add CI success verification step to workflows - Introduced a new job `ci-success` in both Gitea and GitHub CI workflows to verify that all previous jobs (lint and test) succeeded. - The job runs on `ubuntu-latest` and exits with a failure status if any prior job has failed or been cancelled, enhancing the reliability of the CI process. --- .gitea/workflows/ci.yml | 9 +++++++++ .github/workflows/ci.yml | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index b3189ca..916727c 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -38,3 +38,12 @@ jobs: run: uv sync --group dev - name: Run tests run: uv run pytest -q + + ci-success: + if: always() + needs: [lint, test] + runs-on: ubuntu-latest + steps: + - name: Verify all jobs succeeded + if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }} + run: exit 1 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f5da988..c81c9da 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,3 +36,12 @@ jobs: run: uv sync --group dev - name: Run tests run: uv run pytest -q + + ci-success: + if: always() + needs: [lint, test] + runs-on: ubuntu-latest + steps: + - name: Verify all jobs succeeded + if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }} + run: exit 1