diff options
author | Mike Frysinger <vapier@google.com> | 2021-03-10 22:31:41 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@google.com> | 2021-04-01 14:57:05 +0000 |
commit | beea5de84297518634de48b20961efa68a57d797 (patch) | |
tree | 53fc31b871b5ffff87eaca0f0f4d210168a073ba | |
parent | bfbcfd904592a2f61e11a12eec281102230281d6 (diff) | |
download | git-repo-beea5de84297518634de48b20961efa68a57d797.tar.gz |
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>
-rw-r--r-- | .github/workflows/test-ci.yml | 2 | ||||
-rwxr-xr-x | run_tests | 4 | ||||
-rwxr-xr-x | setup.py | 2 | ||||
-rw-r--r-- | tox.ini | 4 |
4 files changed, 7 insertions, 5 deletions
diff --git a/.github/workflows/test-ci.yml b/.github/workflows/test-ci.yml index 701b4fd2..ec6f3791 100644 --- a/.github/workflows/test-ci.yml +++ b/.github/workflows/test-ci.yml | |||
@@ -14,7 +14,7 @@ jobs: | |||
14 | fail-fast: false | 14 | fail-fast: false |
15 | matrix: | 15 | matrix: |
16 | os: [ubuntu-latest, macos-latest, windows-latest] | 16 | os: [ubuntu-latest, macos-latest, windows-latest] |
17 | python-version: [3.6, 3.7, 3.8] | 17 | python-version: [3.5, 3.6, 3.7, 3.8, 3.9] |
18 | runs-on: ${{ matrix.os }} | 18 | runs-on: ${{ matrix.os }} |
19 | 19 | ||
20 | steps: | 20 | steps: |
@@ -34,8 +34,8 @@ def find_pytest(): | |||
34 | if ret: | 34 | if ret: |
35 | return ret | 35 | return ret |
36 | 36 | ||
37 | print(f'{__file__}: unable to find pytest.', file=sys.stderr) | 37 | print('%s: unable to find pytest.' % (__file__,), file=sys.stderr) |
38 | print(f'{__file__}: Try installing: sudo apt-get install python-pytest', | 38 | print('%s: Try installing: sudo apt-get install python-pytest' % (__file__,), |
39 | file=sys.stderr) | 39 | file=sys.stderr) |
40 | 40 | ||
41 | 41 | ||
@@ -56,6 +56,6 @@ setuptools.setup( | |||
56 | 'Programming Language :: Python :: 3 :: Only', | 56 | 'Programming Language :: Python :: 3 :: Only', |
57 | 'Topic :: Software Development :: Version Control :: Git', | 57 | 'Topic :: Software Development :: Version Control :: Git', |
58 | ], | 58 | ], |
59 | python_requires='>=3.6', | 59 | python_requires='>=3.5', |
60 | packages=['subcmds'], | 60 | packages=['subcmds'], |
61 | ) | 61 | ) |
@@ -15,13 +15,15 @@ | |||
15 | # https://tox.readthedocs.io/ | 15 | # https://tox.readthedocs.io/ |
16 | 16 | ||
17 | [tox] | 17 | [tox] |
18 | envlist = py36, py37, py38 | 18 | envlist = py35, py36, py37, py38, py39 |
19 | 19 | ||
20 | [gh-actions] | 20 | [gh-actions] |
21 | python = | 21 | python = |
22 | 3.5: py35 | ||
22 | 3.6: py36 | 23 | 3.6: py36 |
23 | 3.7: py37 | 24 | 3.7: py37 |
24 | 3.8: py38 | 25 | 3.8: py38 |
26 | 3.9: py39 | ||
25 | 27 | ||
26 | [testenv] | 28 | [testenv] |
27 | deps = pytest | 29 | deps = pytest |