From ac4aa7bfba34ad515439fccea2a1ddba69ce84db Mon Sep 17 00:00:00 2001 From: Dmytro Struk <13853051+dmytrostruk@users.noreply.github.com> Date: Sat, 21 Feb 2026 12:02:09 -0800 Subject: [PATCH] Added tests check for Python --- .../workflows/python-integration-tests.yml | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/python-integration-tests.yml b/.github/workflows/python-integration-tests.yml index 902c980794..22af38d9c2 100644 --- a/.github/workflows/python-integration-tests.yml +++ b/.github/workflows/python-integration-tests.yml @@ -111,3 +111,24 @@ jobs: - name: Test with pytest timeout-minutes: 15 run: uv run --directory packages/azure-ai poe integration-tests -n logical --dist loadfile --dist worksteal --timeout=120 --session-timeout=900 --timeout_method thread --retries 2 --retry-delay 5 + + python-integration-tests-check: + if: always() + runs-on: ubuntu-latest + needs: + [ + python-tests-core, + python-tests-azure-ai + ] + steps: + - name: Fail workflow if tests failed + if: contains(join(needs.*.result, ','), 'failure') + uses: actions/github-script@v8 + with: + script: core.setFailed('Integration Tests Failed!') + + - name: Fail workflow if tests cancelled + if: contains(join(needs.*.result, ','), 'cancelled') + uses: actions/github-script@v8 + with: + script: core.setFailed('Integration Tests Cancelled!')