test: 拆分慢速迁移测试并优化 pre-push
- 迁移测试标记 migration,单独运行约 130 秒 - 非迁移测试约 90 秒,日常开发跑快速集 - pre-push 默认跳过 migration;改迁移/模型/迁移测试时自动全量 - FULL_TESTS=1 可强制全量,不删除任何迁移测试
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user