test(ci): 新增 pytest 单元测试与最小 CI 门禁

tools/ci_check.py 统一本地与流水线检查:全量 Python 语法编译(py_compile 不落 __pycache__)+ tests/unit 纯逻辑单测,可选 --frontend 追加壳前端构建;.gitlab-ci.yml 在 Windows runner 上复用同一脚本;requirements-dev.txt / pytest.ini 固化测试依赖与用例路径。单测覆盖 XQ0033/0034/0035/0037/0045/0048 的纯逻辑部分。
This commit is contained in:
2026-11-11 12:48:37 +08:00
parent ad8ff8ee84
commit db1ab3abdf
12 changed files with 928 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
# 开发/测试依赖(不参与执行机便携环境包构建,勿合并进 requirements.txt)
-r requirements.txt
pytest==9.2.0