-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
A few more CI/tox tweaks #13948
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
Merged
Merged
A few more CI/tox tweaks #13948
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
74d49d2
tox: remove unneeded `xdist: -e .`
bluetech 7c581d5
tox: remove no longer needed `pip` download=True
bluetech bb20945
ci,tox: generate coverage xml in tox, not in CI
bluetech 1afe0ae
ci: remove unneeded `setuptools` install
bluetech 5bc8de2
ci: be consistent in how we install tox
bluetech 665363a
ci: replace SETUPTOOLS_SCM_PRETEND_VERSION -> FOR_PYTEST
bluetech File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -65,6 +65,8 @@ commands = | |
| doctesting: {env:_PYTEST_TOX_COVERAGE_RUN:} pytest --doctest-modules --pyargs _pytest | ||
| coverage: coverage combine | ||
| coverage: coverage report -m | ||
| # Run `coverage xml` only on CI. | ||
| coverage: python -c 'import os; os.environ.get("CI") and os.execlp("coverage", "coverage", "xml")' | ||
| passenv = | ||
| COVERAGE_* | ||
| PYTEST_ADDOPTS | ||
|
|
@@ -108,7 +110,6 @@ deps = | |
| twisted25: twisted>=25 | ||
| asynctest: asynctest | ||
| xdist: pytest-xdist>=2.1.0 | ||
| xdist: -e . | ||
| # Can use the same wheel for all environments. | ||
| package = wheel | ||
| wheel_build_env = .pkg | ||
|
|
@@ -174,9 +175,6 @@ description = | |
| run reverse dependency testing against pytest plugins under `{basepython}` | ||
| # use latest versions of all plugins, including pre-releases | ||
| pip_pre=true | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @bluetech I'd probably also delete
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's intentional per the comment above it. |
||
| # use latest pip to get new dependency resolver (#7783) | ||
| download=true | ||
| install_command=python -m pip install {opts} {packages} | ||
| changedir = testing/plugins_integration | ||
| deps = -rtesting/plugins_integration/requirements.txt | ||
| setenv = | ||
|
|
||
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personally, I'd skip pip and have the entire env with tox pinned via
--constraint=.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not familiar with this, how to skip pip but still get tox installed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant skip the previous line and have constraint on this one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although, technically pipx is pre-installed so this could be skipped if there's no desire to pin the env.