From 886b78c82c4df283072cf9d7cf676d70e30ee53a Mon Sep 17 00:00:00 2001 From: "Mike A." Date: Tue, 3 Sep 2024 19:59:48 +0200 Subject: [PATCH] ci: Add test result collection job --- .github/workflows/test.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a4d9263..6869e20 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -42,3 +42,15 @@ jobs: - name: Run unit tests run: poetry run pytest + + results: + runs-on: ubuntu-latest + needs: test + steps: + - run: | + result="${{ needs.test.result }}" + if [[ $result == "success" || $result == "skipped" ]]; then + exit 0 + else + exit 1 + fi