From 1f4129d911336a68fb1eb0d6f0212ab209e158ea Mon Sep 17 00:00:00 2001 From: Rhys Goodall Date: Wed, 4 Mar 2026 17:22:53 -0500 Subject: [PATCH] consolidate branch protection rules --- .github/workflows/test.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0084d553..7882bd7c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -185,3 +185,20 @@ jobs: uv pip install huggingface_hub --system fi uv run --with . ${{ matrix.example }} + + all-required-pass: + if: always() + needs: [test-core, test-examples] + runs-on: ubuntu-latest + steps: + - name: Check all required jobs passed + run: | + if [[ "${{ needs.test-core.result }}" != "success" ]]; then + echo "test-core failed or was cancelled" + exit 1 + fi + if [[ "${{ needs.test-examples.result }}" != "success" ]]; then + echo "test-examples failed or was cancelled" + exit 1 + fi + echo "All required jobs passed"