ci: 完善CI/CD流程,添加测试覆盖率与并行测试配置
1. 为tox测试命令添加并行执行、覆盖率报告和JUnit结果输出 2. 拆分CI工作流为lint、格式检查、类型检查、安全审计、多矩阵测试和覆盖率汇总 3. 新增release前的预测试步骤,让build依赖测试通过 4. 移除低效的依赖策略测速测试用例 5. 配置多Python版本跨平台测试矩阵并上传测试 artifacts
This commit is contained in:
@@ -10,7 +10,7 @@ uv_sync = true
|
||||
deps =
|
||||
.[dev]
|
||||
commands =
|
||||
pytest -m "not slow" {posargs}
|
||||
pytest -m "not slow" -n auto --cov=pyflowx --cov-report=term --cov-report=xml:coverage-{envname}.xml --junitxml=test-results-{envname}.xml {posargs}
|
||||
passenv =
|
||||
CI
|
||||
GITHUB_*
|
||||
@@ -19,3 +19,4 @@ passenv =
|
||||
setenv =
|
||||
PYTHONPATH = {toxinidir}/src
|
||||
PYTHONDONTWRITEBYTECODE = 1
|
||||
COVERAGE_FILE = .coverage.{envname}
|
||||
|
||||
Reference in New Issue
Block a user