fix(ci): stabilize and speed up CI (#5145)

This commit is contained in:
chengyongru
2026-07-28 22:55:59 +08:00
committed by GitHub
parent 9070d7489a
commit 393d429e0a
9 changed files with 328 additions and 26 deletions
+5 -1
View File
@@ -35,6 +35,10 @@ from nanobot.webui.metadata import (
runner = CliRunner()
def _without_rendered_line_breaks(output: str) -> str:
return "".join(output.splitlines())
def test_proactive_websocket_delivery_gets_fresh_turn_id() -> None:
metadata = {
"webui": True,
@@ -2150,7 +2154,7 @@ def test_webui_yes_still_refuses_invalid_custom_model_setup(
assert result.exit_code == 1
assert "provider/model setup is incomplete" in result.stdout
assert "Settings → Models" in result.stdout
assert "Settings → Models" in _without_rendered_line_breaks(result.stdout)
assert "nanobot onboard --wizard" in result.stdout
assert "nanobot status --config" in result.stdout
assert config_file.name in result.stdout
+1 -1
View File
@@ -174,7 +174,7 @@ def test_status_reports_missing_provider_with_shortest_setup_routes(tmp_path) ->
assert result.exit_code == 0
assert "Agent: ✗" in result.stdout
assert "No provider is configured for model" in result.stdout
assert "Settings → Models" in result.stdout
assert "Settings → Models" in _without_rendered_line_breaks(result.stdout)
assert "nanobot onboard --wizard" in result.stdout
assert "nanobot status --config" in result.stdout