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

Only test with coverage on pushes to sphinx-doc/sphinx #10361

Merged
merged 3 commits into from May 2, 2022

Conversation

AA-Turner
Copy link
Member

To speed up CI for PRs, this moves the coverage tests to only run on pushes to branches in this repo, rather than on forks and pull requests too.

I also bumped pytest to 4.6 and removed some now-redundant code (we had previously always installed pytest-cov, which has required pytest>=4.6 since 2020)

https://github.com/pytest-dev/pytest-cov/blob/694f7fd497b07aaea76d96e484068faf440e8301/setup.py#L125

A

Feature or Bugfix

  • Refactoring

Relates

Copy link
Member

@tk0miya tk0miya left a comment

Choose a reason for hiding this comment

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

Looks good. But it seems CI are not passed. Could you check them please?

@@ -47,8 +47,7 @@
"types-requests",
],
'test': [
'pytest',
'pytest-cov',
'pytest>=4.6',
Copy link
Member

Choose a reason for hiding this comment

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

Note: pytest-4.6 has been packaged since Ubuntu 20.04. But I think it's okay because this dependency is for developers, not users.

Ubuntu LTS pytest version
18.04 3.3.2
20.04 4.6.9
22.04 6.2.5

refs: https://packages.ubuntu.com/jammy/python3-pytest

@AA-Turner AA-Turner force-pushed the split-coverage branch 2 times, most recently from 172061a to 65ae948 Compare May 2, 2022 16:49
@AA-Turner
Copy link
Member Author

Looks good. But it seems CI are not passed. Could you check them please?

Updated, I forgot that generators aren't reversible. Seems to be passing now.

A

@tk0miya
Copy link
Member

tk0miya commented May 2, 2022

Thank you for quick update. Merging now.

@tk0miya tk0miya merged commit 81bb102 into sphinx-doc:5.x May 2, 2022
@tk0miya
Copy link
Member

tk0miya commented May 2, 2022

@AA-Turner The coverage job was failed just after merging this. Could you check this, please?
https://github.com/sphinx-doc/sphinx/runs/6261200953?check_suite_focus=true

@AA-Turner AA-Turner mentioned this pull request May 2, 2022
@AA-Turner
Copy link
Member Author

Was just working on that, please see #10413 -- sorry for the oversight.

A

@AA-Turner AA-Turner deleted the split-coverage branch May 2, 2022 17:48
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants