From c4f00267180eb185dc356652442a0974b081ced7 Mon Sep 17 00:00:00 2001 From: Leo Fang Date: Sun, 12 Jan 2025 12:11:44 -0500 Subject: [PATCH] add status check --- .github/workflows/build-and-test.yml | 11 +++++++++++ .github/workflows/status-check.yml | 16 ++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 .github/workflows/status-check.yml diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index def159f5..18b503fa 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -268,3 +268,14 @@ jobs: fi pytest -rxXs tests_cython popd + + checks: + name: Check job status + permissions: + checks: read + needs: + - build + - test + secrets: inherit + uses: + ./.github/workflows/status-check.yml diff --git a/.github/workflows/status-check.yml b/.github/workflows/status-check.yml new file mode 100644 index 00000000..289e236b --- /dev/null +++ b/.github/workflows/status-check.yml @@ -0,0 +1,16 @@ +name: "CI: Summary" + +on: + workflow_call: + +jobs: + checks: + name: Check job status + runs-on: ubuntu-latest + steps: + - name: GitHub Checks + uses: poseidon/wait-for-status-checks@v0.6.0 + with: + token: ${{ secrets.GITHUB_TOKEN }} + match_pattern: "CI*" + ignore_pattern: ".*Check job status.*" # ignore self