From 94a0dd016918397bc7a126bc11c10e166f0c7888 Mon Sep 17 00:00:00 2001 From: oudecheng <13802883547@139.com> Date: Tue, 4 Aug 2026 08:09:51 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E6=89=A9=E5=A4=A7=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E4=B8=8E=E6=B5=8B=E8=AF=95=E8=A6=86=E7=9B=96=E8=8C=83=E5=9B=B4?= =?UTF-8?q?=EF=BC=8C=E7=BA=B3=E5=85=A5=E9=9B=86=E6=88=90=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E4=B8=8E=E4=BA=8C=E8=BF=9B=E5=88=B6=E5=85=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit cargo build --lib 改为 cargo build,确保 main.rs(gateway 二进制入口)也被编译验证; cargo test --lib 改为 cargo test,纳入 tests/ 目录的集成测试。 test_request_format.rs 的 8 个序列化测试此前从未在 CI 中运行,现在会实际执行; test_integration.rs / test_tool_calling.rs 中的 #[ignore] 测试会被编译但跳过执行(需真实 API key)。 --- .github/workflows/ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9aea30c..a67ea57 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,10 +48,14 @@ jobs: run: cargo clippy --all-targets --all-features - name: Build - run: cargo build --lib + # 构建 lib + 二进制入口(main.rs),确保 gateway 二进制也被编译验证 + run: cargo build - name: Run tests - run: cargo test --lib + # 运行 lib 单元测试 + tests/ 集成测试 + # test_integration.rs / test_tool_calling.rs 中的 #[ignore] 测试 + # 需要真实 API key,会被跳过;test_request_format.rs 的测试会实际执行 + run: cargo test frontend-checks: name: Frontend build + test