From 4cac0c5cf1800fb19c6df06dcb7c543c17be1a33 Mon Sep 17 00:00:00 2001 From: Patrick Ogenstad Date: Wed, 26 Aug 2026 17:17:14 +0200 Subject: [PATCH] ci: gate integration tests on unit-test success Add unit-tests to the needs list of integration-tests-latest-infrahub so the expensive huge-runner integration job is skipped when any unit-test matrix leg fails, instead of running in parallel with failing unit tests. --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1cd96ed8..e8ed0073 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -317,7 +317,7 @@ jobs: !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') && needs.files-changed.outputs.python == 'true' - needs: ["prepare-environment", "files-changed", "yaml-lint", "python-lint"] + needs: ["prepare-environment", "files-changed", "yaml-lint", "python-lint", "unit-tests"] runs-on: group: "huge-runners" timeout-minutes: 40 @@ -355,7 +355,7 @@ jobs: # !contains(needs.*.result, 'cancelled') && # needs.files-changed.outputs.python == 'true' && # (github.base_ref == 'stable' || github.base_ref == 'develop') - # needs: ["prepare-environment", "files-changed", "yaml-lint", "python-lint"] + # needs: ["prepare-environment", "files-changed", "yaml-lint", "python-lint", "unit-tests"] # runs-on: # group: "huge-runners" # timeout-minutes: 30