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

tox: Remove outdate coverage targets #13520

Merged
merged 2 commits into from
Aug 26, 2022

Conversation

sobolevn
Copy link
Member

There were so many things from with this:

  1. cov command (the second one after pytest) was never executed, since you needed to call it explicitly with tox -e py38-cov. But, in this case it was generated after the initial test run. So, basically you had two test runs to get coverage
  2. coverage environment was just broken. For example, all packages are very outdated diff-cover is at 6.5 right now, while we had it pinned to <2. It tried to make it work, but no luck. After all, I don't think that we really need this undocumented and unused way of getting coverage
  3. I've also added a working way to get coverage into the CONTRIBUTING.md file

@github-actions

This comment has been minimized.

CONTRIBUTING.md Outdated
@@ -76,6 +82,12 @@ flake8
black . && isort .
```

To run tests with coverage:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we move this to test-data/unit/README.md?

CONTRIBUTING.md is aimed at newer contributors; I don't think many of them will be running coverage

Copy link
Collaborator

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for cleaning this up!

@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@hauntsaninja hauntsaninja merged commit 49983fc into python:master Aug 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants