Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

👷 [nox] Combine coverage under the latest Python release #695

Merged
merged 2 commits into from
May 16, 2022

Conversation

cjolowicz
Copy link
Owner

  • 👷 [nox] Combine coverage under the latest Python release
  • 🔨 [nox] Do not hardcode Python versions in @session decorators

Combine coverage data under the latest Python version supported by the measured
code. Combining data from Python 3.10 under Python 3.9 produces false positives
in branch coverage, where arcs leaving loop blocks are reported as missing.

Previously, the coverage session used the same Python interpreter as Nox. This
worked fine in CI, but could trigger the problem in local development, if Nox
was installed under an older interpreter such as Python 3.9.

Retrocookie-Original-Commit: cjolowicz/cookiecutter-hypermodern-python-instance@a99f726
@cjolowicz cjolowicz added the ci Continuous Integration label May 16, 2022
@cjolowicz cjolowicz merged commit ed8a654 into main May 16, 2022
@cjolowicz cjolowicz deleted the ci/coverage-py310 branch May 16, 2022 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci Continuous Integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant