chore(deps)(deps-dev): bump pytest-cov from 5.0.0 to 7.0.0#24
Open
dependabot[bot] wants to merge 1 commit into
Open
chore(deps)(deps-dev): bump pytest-cov from 5.0.0 to 7.0.0#24dependabot[bot] wants to merge 1 commit into
dependabot[bot] wants to merge 1 commit into
Conversation
Author
LabelsThe following labels could not be found: Please fix the above issues or remove invalid values from |
Bumps [pytest-cov](https://github.com/pytest-dev/pytest-cov) from 5.0.0 to 7.0.0. - [Changelog](https://github.com/pytest-dev/pytest-cov/blob/master/CHANGELOG.rst) - [Commits](pytest-dev/pytest-cov@v5.0.0...v7.0.0) --- updated-dependencies: - dependency-name: pytest-cov dependency-version: 7.0.0 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
5de6faa to
436188b
Compare
ZeroPointSix
requested changes
Jun 11, 2026
ZeroPointSix
left a comment
Owner
There was a problem hiding this comment.
总体结论:本轮巡检审查了 PR #24 当前 head 436188b。该 PR 将 pytest-cov 从 5.0.0 升到 7.0.0,但 CI 测试 job 已失败;作为测试工具主版本升级,合并前需要先恢复测试通过并确认覆盖率配置仍符合预期。
关键发现:
- 阻塞:GitHub Actions
CI #48中代码检查job 通过,但测试(含集成)job 在运行测试步骤失败,Docker 构建被跳过。依赖安装已通过,说明失败不是包安装层面的硬错误,而是在测试执行阶段暴露。 - 高:
pytest-cov 7.0.0删除了旧的 subprocess coverage 测量支持,并要求使用 coverage 的patch = subprocess配置来迁移。如果项目测试会启动子进程、后台 worker、CLI 或集成服务,覆盖率行为可能变化,甚至导致测试/覆盖率门禁失败。建议检查.coveragerc、pyproject.toml或 CI 中的 pytest coverage 参数是否需要迁移。 - 中:该 PR 只改
requirements-dev.txt,不影响运行时依赖;但因为 CI 测试失败,它会直接影响合并门禁和后续依赖 PR 的判断,建议优先修复或暂缓。
优先级建议:
- 阻塞:先重跑或本地复现
测试(含集成),拿到失败用例;测试通过前不要合并。 - 高:检查 coverage 配置是否需要添加
[run] patch = subprocess,以及 coverage 版本是否满足 pytest-cov 7 的最低要求。 - 中:确认项目是否真的需要 pytest-cov 7;如果短期只需要稳定 CI,可以先升级到 6.x 或保持 5.x。
后续建议:
- 建议把 pytest-cov 的升级和 coverage 配置迁移放在同一个 PR 中完成,并在 PR 描述里贴出测试命令和覆盖率输出摘要。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps pytest-cov from 5.0.0 to 7.0.0.
Changelog
Sourced from pytest-cov's changelog.
... (truncated)
Commits
224d896Bump version: 6.3.0 → 7.0.073424e3Cleanup the docs a bit.36f1cc2Bump pins in template.f299c59Bump the github-actions group with 2 updates25f0b2eUpdate docs/config.rstbb23eacImprove configuration docsa19531eSwitch from build/pre-commit to uv/prek - this should make this faster.82f9993Update changelog.211b5cdFix links.97aadd7Update some ci config, reformat and apply some lint fixes.Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)