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

This commit is contained in:
chengyongru authored and GitHub committed 2026-07-28 22:55:59 +08:00
1 parent 9070d7489a
commit 393d429e0a
9 files changed
+328 -26

No files matched your search

+11
View File
@@ -9,6 +9,17 @@ from collections.abc import Iterator
import certifi
import pytest
from loguru import logger
@pytest.fixture(autouse=True)
def _isolate_nanobot_log_activation() -> Iterator[None]:
"""Keep CLI log settings from leaking into later tests in the same process."""
logger.enable("nanobot")
try:
yield
finally:
logger.enable("nanobot")
@pytest.fixture(scope="session", autouse=True)