test: 拆分慢速迁移测试并优化 pre-push

- 迁移测试标记 migration,单独运行约 130 秒
- 非迁移测试约 90 秒,日常开发跑快速集
- pre-push 默认跳过 migration;改迁移/模型/迁移测试时自动全量
- FULL_TESTS=1 可强制全量,不删除任何迁移测试
This commit is contained in:
yml
2026-11-24 19:14:40 +08:00
parent b10018efdd
commit b0be3d15cc
6 changed files with 29 additions and 4 deletions
+3
View File
@@ -44,6 +44,9 @@ packages = ["core", "utils", "web"]
[tool.pytest.ini_options]
testpaths = ["tests"]
markers = [
"migration: 创建临时 MySQL 库并执行 Alembic 迁移链;比普通用例慢很多",
]
[tool.ruff.lint.per-file-ignores]
# FastAPI evaluates dependency metadata in route parameter defaults by design.