mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
tox: enable python 3.5 & 3.9 testing
We still support Python 3.5, so make sure it keeps working. Change-Id: I150158a656b26de6d733316a68a2cbb8b5b99716 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/299625 Reviewed-by: Michael Mortensen <mmortensen@google.com> Tested-by: Mike Frysinger <vapier@google.com>
This commit is contained in:
parent
bfbcfd9045
commit
beea5de842
2
.github/workflows/test-ci.yml
vendored
2
.github/workflows/test-ci.yml
vendored
@ -14,7 +14,7 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||||
python-version: [3.6, 3.7, 3.8]
|
python-version: [3.5, 3.6, 3.7, 3.8, 3.9]
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -34,8 +34,8 @@ def find_pytest():
|
|||||||
if ret:
|
if ret:
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
print(f'{__file__}: unable to find pytest.', file=sys.stderr)
|
print('%s: unable to find pytest.' % (__file__,), file=sys.stderr)
|
||||||
print(f'{__file__}: Try installing: sudo apt-get install python-pytest',
|
print('%s: Try installing: sudo apt-get install python-pytest' % (__file__,),
|
||||||
file=sys.stderr)
|
file=sys.stderr)
|
||||||
|
|
||||||
|
|
||||||
|
2
setup.py
2
setup.py
@ -56,6 +56,6 @@ setuptools.setup(
|
|||||||
'Programming Language :: Python :: 3 :: Only',
|
'Programming Language :: Python :: 3 :: Only',
|
||||||
'Topic :: Software Development :: Version Control :: Git',
|
'Topic :: Software Development :: Version Control :: Git',
|
||||||
],
|
],
|
||||||
python_requires='>=3.6',
|
python_requires='>=3.5',
|
||||||
packages=['subcmds'],
|
packages=['subcmds'],
|
||||||
)
|
)
|
||||||
|
4
tox.ini
4
tox.ini
@ -15,13 +15,15 @@
|
|||||||
# https://tox.readthedocs.io/
|
# https://tox.readthedocs.io/
|
||||||
|
|
||||||
[tox]
|
[tox]
|
||||||
envlist = py36, py37, py38
|
envlist = py35, py36, py37, py38, py39
|
||||||
|
|
||||||
[gh-actions]
|
[gh-actions]
|
||||||
python =
|
python =
|
||||||
|
3.5: py35
|
||||||
3.6: py36
|
3.6: py36
|
||||||
3.7: py37
|
3.7: py37
|
||||||
3.8: py38
|
3.8: py38
|
||||||
|
3.9: py39
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
deps = pytest
|
deps = pytest
|
||||||
|
Loading…
Reference in New Issue
Block a user