Skip to content

Commit

Permalink
test against more python versions in tox and travis
Browse files Browse the repository at this point in the history
  • Loading branch information
dixudx committed Mar 19, 2021
1 parent 2df2432 commit bae3e17
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
15 changes: 13 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,29 @@ language: python
python:
- "2.7"
- "3.5"
- "3.6"
- "3.7"
- "3.8"
- "3.9"

matrix:
include:
- python: "2.7"
env: TEST_SUITE=py27
- python: "3.5"
env: TEST_SUITE=py35
- python: "3.6"
env: TEST_SUITE=py36
- python: "3.7"
env: TEST_SUITE=py37
- python: "3.8"
env: TEST_SUITE=py38
- python: "3.9"
env: TEST_SUITE=py39

install:
- pip install tox

# command to run tests
script:
- tox -e pycodestyle
- tox -e $TEST_SUITE
- tox -e pycodestyle,$TEST_SUITE
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py27,py35,pycodestyle
envlist = py27,py35,py36,py37,py38,py39,pycodestyle

[testenv]
setenv = VIRTUAL_ENV={envdir}
Expand Down

0 comments on commit bae3e17

Please sign in to comment.