Hermes
361dbe5fbd
CI / pytest (Python 3.10) (push) Has been cancelled
CI / pytest (Python 3.11) (push) Has been cancelled
CI / pytest (Python 3.12) (push) Has been cancelled
feat(ci): T10.2 codecov 集成 + 覆盖率徽章配置
完成 v2.1 实施计划 T10.2: codecov 集成与覆盖率徽章。
变更:
- .github/workflows/ci.yml: 新增 'Upload coverage to Codecov' 步骤
- codecov/codecov-action@v4 (锁 major)
- 3.11 单点上传,flag=python-3.11(避免矩阵多份报告冲突)
- fail_ci_if_error: false(codecov 不可达不阻断 CI)
- 不设 token: public repo 匿名上传即可
- codecov.yml: 配置文件
- project target 60% / threshold 1% (与 T5.5 整体门槛对齐)
- core (skills/gaokao-spec-checker + gaokao-college-advisor) target 80% / threshold 2%
- patch target 70% / threshold 5%
- ignore docs/tests/rules/scripts/gaokao-shortlink (非生产代码)
- require_ci_to_pass: false (CI 失败不阻塞 codecov 上传)
本地验证:
- pytest 136/136 通过 (T7 修复后 test_route_short_link 已恢复)
- 整体覆盖率 59.55% (line-rate=0.5955, 2126/1266 lines)
- coverage.xml 是合法 Cobertura XML (codecov-action 可消费)
- ci.yml/codecov.yml YAML schema 解析通过
未在本任务范围: T5.5 --cov-fail-under 硬门槛启用、scripts/* 0% 覆盖率补齐、
core 模块 (gaokao-spec-checker 72%, 距 80% 差 8%) 补齐。