From 0517a4d5e09454012de939c7c9892c537e4ddae9 Mon Sep 17 00:00:00 2001 From: Jakob Socan <10517617+jakgra@users.noreply.github.com> Date: Wed, 10 Jan 2024 15:12:25 +0100 Subject: [PATCH 1/2] Run HIL tests after all wheels are available --- .github/workflows/main.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 79889f628..79697236a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -556,8 +556,9 @@ jobs: # event-type: python-hil-event # client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}' - notify_hil_workflow_linux_x86_64: - needs: [build-linux-x86_64] + notify_hil_workflow: + if: '!cancelled() && success()' # run when jobs are skipped, but don't run when one fails + needs: [pytest, build-linux-armhf, build-windows-x86_64, build-macos-x86_64, build-macos-arm64, build-linux-x86_64, build-linux-arm64, deploy] runs-on: ubuntu-latest steps: - name: Dispatch an action and get the run ID @@ -573,4 +574,4 @@ jobs: workflow_timeout_seconds: 300 # was 120 Default: 300 - name: Release - run: echo "https://github.com/luxonis/depthai-core-hil-tests/actions/runs/${{steps.return_dispatch.outputs.run_id}}" >> $GITHUB_STEP_SUMMARY \ No newline at end of file + run: echo "https://github.com/luxonis/depthai-core-hil-tests/actions/runs/${{steps.return_dispatch.outputs.run_id}}" >> $GITHUB_STEP_SUMMARY From 4ff848c3beca848eb03ac972eb7451da6695e1a3 Mon Sep 17 00:00:00 2001 From: Jakob Socan <10517617+jakgra@users.noreply.github.com> Date: Mon, 15 Jan 2024 10:08:52 +0100 Subject: [PATCH 2/2] Make notify hil workflow depend only on builds it needs --- .github/workflows/main.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 79697236a..b0af5e080 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -557,8 +557,7 @@ jobs: # client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}' notify_hil_workflow: - if: '!cancelled() && success()' # run when jobs are skipped, but don't run when one fails - needs: [pytest, build-linux-armhf, build-windows-x86_64, build-macos-x86_64, build-macos-arm64, build-linux-x86_64, build-linux-arm64, deploy] + needs: [build-linux-armhf, build-linux-x86_64] runs-on: ubuntu-latest steps: - name: Dispatch an action and get the run ID