Skip to content

ci: 新增后端单元测试工作流 - #891

Merged
xerrors merged 1 commit into
xerrors:mainfrom
Alex-Fleet:fix/add-test-ci
Aug 7, 2026
Merged

ci: 新增后端单元测试工作流#891
xerrors merged 1 commit into
xerrors:mainfrom
Alex-Fleet:fix/add-test-ci

Conversation

@Alex-Fleet

Copy link
Copy Markdown
Contributor

Fixes #869

变更描述

新增 .github/workflows/test.yml,在 push main 与 PR 时运行后端 unit 层 pytest(不依赖 docker 服务)。此前后端 pytest 从未接入 CI。

变更类型

  • 新功能(CI 基础设施)

测试

  • GitHub Actions 语法待首次运行验证
  • 注意:首次运行需下载后端依赖(含 torch),耗时较长

此前 backend/test 从未接入 CI,PR/commit 无回归保障。
新增 test.yml,在 push/PR 时运行 pytest -m unit。
关联 xerrors#869
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] 后端 pytest 测试完全未接入 CI,改动回归风险高

2 participants