Skip to content

Commit

Permalink
Set up test infrastructur
Browse files Browse the repository at this point in the history
- Use pytest with tox to run tests.
- Update travis to run tests via tox.
- Update list of supported Python versions. Technically 2.6 is still
  supported, but it does not work with tox, so we can't run the tests
  there.

Running tests with `setup.py test` still uses nose as runner.

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
  • Loading branch information
lubomir committed Sep 4, 2019
1 parent 49256bf commit 084e65f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
language: python
python:
- "2.6"
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "3.6"
script: "python setup.py test"
matrix:
include:
- python: "2.7"
env: TOXENV=py27
- python: "3.6"
env: TOXENV=py36
- python: "3.7"
env: TOXENV=py37
install:
- pip install tox
script:
- tox -e $TOXENV
6 changes: 6 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@ max-line-length = 140

[tox]
skipsdist = True
envlist = py27,py36,py37,py38
skip_missing_interpreters = True

[testenv]
deps = pytest
commands = pytest

0 comments on commit 084e65f

Please sign in to comment.