diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9d4b97e8..94f310a1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -80,3 +80,24 @@ jobs: environments: docs-${{ matrix.package }} - name: Build docs run: pixi run -e docs-${{ matrix.package }} docs ${{ matrix.package }} + + report: + name: Report Job Status + needs: [changes, formatting, test, docs] + if: always() + runs-on: ubuntu-24.04 + steps: + - name: Report Job Success + run: echo "All Tests Succeeded" + if: | + needs.formatting.result == 'success' && + (needs.test.result == 'skipped' || needs.test.result == 'success') && + (needs.docs.result == 'skipped' || needs.docs.result == 'success') + - name: Report Job Failure + run: | + echo "Not All Tests Succeeded..." + exit 1 + if: | + needs.formatting.result != 'success' || + (needs.test.result != 'skipped' && needs.test.result == 'failure') || + (needs.docs.result != 'skipped' && needs.docs.result == 'failure')