ci: add automated test workflow
This commit is contained in:
+5
-1
@@ -1025,4 +1025,8 @@
|
||||
|
||||
- 代码/配置:新增根目录 `requirements.txt`,锁定当前直接运行依赖:PySide6==6.5.3、openpyxl==3.1.3、requests==2.31.0、websocket-client==1.6.1、Pillow==9.5.0;不新增运行时依赖,不改业务代码。
|
||||
- 文档:`docs/03-tech-stack.md` 的安装命令改为 `python -m pip install -r requirements.txt`,并补充依赖纪律;`docs/README.md` 增加运行环境安装命令;`docs/06-tasks.md` 标记 T-521 DONE;`docs/current-state.md` 同步当前快照和下一任务 T-522。
|
||||
- 验证:`python -c "import PySide6, openpyxl, requests, websocket, PIL; ..."` 确认当前版本;`python -m pip install --no-index -r requirements.txt` 确认当前环境已满足锁定依赖且不触网;`python -m compileall app main.py` 通过;`python -m unittest discover -s tests` 通过(159 tests)。`python -m pip check` 在全局环境发现 albumentations/paddleocr/flask-babel 等非本项目包的既有依赖冲突,非 T-521 新增依赖导致;本项目锁定的 5 个直接依赖可正常 import。
|
||||
- 验证:`python -c "import PySide6, openpyxl, requests, websocket, PIL; ..."` 确认当前版本;`python -m pip install --no-index -r requirements.txt` 确认当前环境已满足锁定依赖且不触网;`python -m compileall app main.py` 通过;`python -m unittest discover -s tests` 通过(159 tests)。`python -m pip check` 在全局环境发现 albumentations/paddleocr/flask-babel 等非本项目包的既有依赖冲突,非 T-521 新增依赖导致;本项目锁定的 5 个直接依赖可正常 import。
|
||||
## 【2026-07-02】T-522 完成 · CI 自动跑语法 + 单元 / GUI 测试
|
||||
- 配置:新增 `.github/workflows/tests.yml`,在 push / pull_request 上使用 `windows-latest` + Python 3.11,安装 `requirements.txt`,设置 `QT_QPA_PLATFORM=offscreen`,运行 `python -m compileall app main.py` 与 `python -m unittest discover -s tests`。
|
||||
- 文档:同步 `docs/03-tech-stack.md`、`docs/README.md`、`docs/current-state.md`;`docs/06-tasks.md` 将 T-522 标为 DONE,下一个可领取任务更新为 T-523。
|
||||
- 验证:`python -m compileall app main.py` 通过;`python -m unittest discover -s tests` 通过(159 tests);`git diff --check` 无空白错误(仅 LF/CRLF 提示)。本地未执行 GitHub Actions 远端 runner,workflow 已按同等命令配置。
|
||||
Reference in New Issue
Block a user