From d954e22a7802c32d8e9b6b2cbda060ffa02f47a6 Mon Sep 17 00:00:00 2001 From: xiaoxing0135 <706015750@qq.com> Date: Thu, 28 May 2026 03:21:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20selftest-weekly=20=E8=A1=A5=20pydant?= =?UTF-8?q?ic-settings=20+=20=E5=85=B6=E4=BB=96=20runtime=20=E6=A0=B8?= =?UTF-8?q?=E5=BF=83=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根因: pydantic-settings / typer / rich / loguru 等是 runtime 必需, 但 config/requirements.txt 里被标 [可选] 注释掉。 selftest-weekly 之前只 pip install litellm,启动 runtime 即 ModuleNotFoundError: No module named pydantic_settings → 周自检长期红。 对齐 PR #147 (pytest-unit) / 配置一致性: 加 pydantic-settings, typer, rich, loguru, defusedxml, fastapi, python-multipart, httpx。 后续可考虑 PR #b: config/requirements.txt 把 runtime 核心从 [可选] 提到 [稳定层] 真正治本。 --- .github/workflows/selftest-weekly.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/selftest-weekly.yml b/.github/workflows/selftest-weekly.yml index b6e73a6..a91baff 100644 --- a/.github/workflows/selftest-weekly.yml +++ b/.github/workflows/selftest-weekly.yml @@ -30,7 +30,8 @@ jobs: run: | python -m pip install --upgrade pip pip install -r config/requirements.txt 2>&1 | tail -10 - pip install litellm # 真 LLM 调用必需 + # runtime 核心 (config/requirements.txt 里被标 [可选] 但 runtime 必需) + pip install litellm pydantic-settings typer rich loguru defusedxml fastapi python-multipart httpx - name: L1 frontmatter lint run: python -m runtime.healthcheck.agent_smoke