- Notifications
You must be signed in to change notification settings - Fork294
Test more on GitHub Actions#564
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
10 commits Select commitHold shift + click to select a range
2ea33b2
Test more on GitHub Actions
ambv5b2340b
Fix GHA file
ambve45d6d3
Fix tox.ini
ambv138662b
Remove Tox from test deps
ambv37d21eb
Cross-platform Tox version mangling
ambv2f568a0
Use toxver.py correctly
ambvee25b45
Don't run 2.7 on Windows on GHA (pip cache crashes)
ambv7e0239b
Try flake8 3.9.2 as 3.8.x was crashing on Python 3.7
ambv9382b10
Split flake8 deps to 2.7-3.5 and 3.6+
ambv3c05d2d
Document toxver.py
ambvFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
8 changes: 0 additions & 8 deletions.appveyor.yml
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
51 changes: 46 additions & 5 deletions.github/workflows/python-tox.yml
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
15 changes: 0 additions & 15 deletionsrequirements-install.sh
This file was deleted.
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
29 changes: 29 additions & 0 deletionsrequirements-oldest.txt
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# This allows us to install the actually oldest supported dependencies and test whether that works. | ||
# requirements.txt | ||
six==1.9 | ||
webencodings==0.5.1 | ||
# requirements-optional.txt | ||
genshi==0.7.1 ; python_version < '3.8' | ||
genshi==0.7.6 ; python_version >= '3.8' | ||
chardet==2.2.1 | ||
# this should be 3.4.0 but there are no Linux | ||
# binary wheels for older releases | ||
lxml==3.8.0 ; python_version < '3.7' | ||
# minimums for 3.x are actually different: | ||
# - 3.7 is actually 4.1.1 | ||
# - 3.8 is actually 4.3.5 | ||
# - 3.9-3.10 is actually 4.5.2 | ||
# - 3.11 is actually 4.9.0 | ||
lxml==4.9.0 ; python_version >= '3.7' | ||
# requirements-test.txt | ||
flake8==3.9.2 ; python_version < '3.6' | ||
flake8==5.0.4; python_version >= '3.6' | ||
pytest==4.6.10 ; python_version < '3' | ||
pytest==5.4.2 ; python_version >= '3' | ||
coverage==5.1 | ||
pytest-expect==1.1.0 | ||
mock==3.0.5 ; python_version < '3.6' | ||
mock==4.0.2 ; python_version >= '3.6' |
6 changes: 3 additions & 3 deletionsrequirements-optional.txt
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
4 changes: 2 additions & 2 deletionsrequirements-test.txt
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
12 changes: 6 additions & 6 deletionssetup.py
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
7 changes: 4 additions & 3 deletionstox.ini
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
57 changes: 57 additions & 0 deletionstoxver.py
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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
#!/usr/bin/env python | ||
""" | ||
usage: toxver.py [python-version] [deps] | ||
Returns a Tox environment name given a GHA matrix Python version and dependencies. | ||
Many GHA configurations do this with inline Bash scripts but we want our solution | ||
to be cross-platform and work on Windows workers, too. | ||
Examples: | ||
$ toxver.py pypy-3.8 base | ||
TOXENV=pypy3-base | ||
$ toxver.py 2.7 oldest | ||
TOXENV=py27-oldest | ||
$ toxver.py ~3.12.0-0 optional | ||
TOXENV=py312-optional | ||
""" | ||
from __future__ import absolute_import | ||
from __future__ import division | ||
from __future__ import print_function | ||
from __future__ import unicode_literals | ||
import sys | ||
def main(argv): | ||
if len(argv) != 3: | ||
print(__doc__.strip(), file=sys.stderr) | ||
return 1 | ||
deps = argv[2] | ||
if argv[1].startswith("pypy-2"): | ||
print("TOXENV=pypy-" + deps) | ||
return 0 | ||
if argv[1].startswith("pypy-3"): | ||
print("TOXENV=pypy3-" + deps) | ||
return 0 | ||
if argv[1].startswith("~"): | ||
ver = argv[1][1:5] | ||
else: | ||
ver = argv[1] | ||
ver = ver.replace(".", "") | ||
print("TOXENV=py" + ver + "-" + deps) | ||
return 0 | ||
if __name__ == "__main__": | ||
sys.exit(main(sys.argv)) |
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.