diff --git a/.github/mcp/mcp_pytest.py b/.github/mcp/mcp_pytest.py index 5f0aaa147b..b6d74880c8 100644 --- a/.github/mcp/mcp_pytest.py +++ b/.github/mcp/mcp_pytest.py @@ -130,7 +130,7 @@ print(line, end='') print('[GHA] Run completed. Waiting for run to finish...') - run = wait_for_run_status(run, status='completed') + run = wait_for_run_status(run, status=RunStatus.COMPLETED) - # Fail if command exited with non-zero exit code or timed out - assert run.status == RunStatus.COMPLETED + # Fail if command exited with non-zero exit code or timed out (didn't reach COMPLETED) + assert run.status == RunStatus.COMPLETED, f'Run did not complete: {run.status} ({run.reason})'