From c40b8420cd6ae3ef9f816dee0e7be374f8efb9ee Mon Sep 17 00:00:00 2001 From: Andrei Kashchikhin Date: Mon, 27 May 2024 12:46:08 +0100 Subject: [PATCH] add overall status jobs (#919) --- .github/workflows/linux.yml | 20 ++++++++++++++------ .github/workflows/mac.yml | 14 ++++++++++++++ .github/workflows/windows.yml | 16 +++++++++++++++- 3 files changed, 43 insertions(+), 7 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index c4f3c1615..b08b7275f 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -2,16 +2,10 @@ name: Linux (Ubuntu 20.04, Python 3.11) on: workflow_dispatch: pull_request: - paths-ignore: - - 'modules/nvidia_plugin' - - 'modules/openvino_code' push: branches: - master - 'releases/**' - paths-ignore: - - 'modules/nvidia_plugin' - - 'modules/openvino_code' concurrency: # github.ref is not unique in post-commit @@ -331,3 +325,17 @@ jobs: - name: Show ccache stats run: ccache --show-stats + + Overall_Status: + name: ci/gha_overall_status_linux + needs: [ Build_and_test, NVIDIA_Plugin ] + if: ${{ always() }} + runs-on: ubuntu-latest + steps: + - name: Check status of all jobs + if: >- + ${{ + contains(needs.*.result, 'failure') || + contains(needs.*.result, 'cancelled') + }} + run: exit 1 diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml index 6fdb59220..131f5b1e0 100644 --- a/.github/workflows/mac.yml +++ b/.github/workflows/mac.yml @@ -147,3 +147,17 @@ jobs: name: test-results-java path: ${{ env.OPENVINO_CONTRIB_REPO }}/modules/java_api/build/test-results if-no-files-found: 'warn' + + Overall_Status: + name: ci/gha_overall_status_mac + needs: [ Build_and_test ] + if: ${{ always() }} + runs-on: ubuntu-latest + steps: + - name: Check status of all jobs + if: >- + ${{ + contains(needs.*.result, 'failure') || + contains(needs.*.result, 'cancelled') + }} + run: exit 1 \ No newline at end of file diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 1b1f9bee6..9ab97d732 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -189,4 +189,18 @@ jobs: with: name: test-results-java path: ${{ env.OPENVINO_CONTRIB_REPO }}/modules/java_api/build/test-results - if-no-files-found: 'warn' \ No newline at end of file + if-no-files-found: 'warn' + + Overall_Status: + name: ci/gha_overall_status_windows + needs: [ Build_and_test ] + if: ${{ always() }} + runs-on: ubuntu-latest + steps: + - name: Check status of all jobs + if: >- + ${{ + contains(needs.*.result, 'failure') || + contains(needs.*.result, 'cancelled') + }} + run: exit 1