Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #87 Added support for testing multiple python versions
- Loading branch information
1 parent
6a80833
commit 7b37b37
Showing
5 changed files
with
37 additions
and
22 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1 +1,3 @@ | ||
3.5.6 | ||
3.8.0 | ||
pypy3.5-7.0.0 |
This file contains 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
This file contains 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
This file contains 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
This file contains 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 |
---|---|---|
@@ -1,22 +1,35 @@ | ||
[tox] | ||
envlist = {py3,pypy3}-{lint,test,docs} | ||
skip_missing_interpreters=False | ||
# explicitly set python versions to make it possible to run tests in parallel | ||
# using pyenv | ||
# pypy is an exception case because there is no pypy3.# alias with a patch | ||
# number, at least on macos | ||
# we omit the ambiguous "py3" factor so as to not run the tests for a superfluous | ||
# version that is being run elsewhere | ||
envlist = py{35,38,py3}-{lint,test,docs} | ||
skip_missing_interpreters=True | ||
|
||
[testenv] | ||
setenv = | ||
PROJECT_PATH=friendlypins | ||
|
||
usedevelop=True | ||
|
||
# Separate working folders for each python version | ||
envdir = | ||
py3: {toxworkdir}/py3 | ||
py35: {toxworkdir}/py35 | ||
py38: {toxworkdir}/py38 | ||
pypy3: {toxworkdir}/pypy3 | ||
|
||
# Use consistent set of dependencies for each major Python version | ||
# helps minimize overhead of dependency management | ||
deps = | ||
py3: -rrequirements.txt | ||
py{35,38}: -rrequirements.txt | ||
pypy3: -rpypyrequirements.txt | ||
|
||
# restrict running of non-test operations to just the latest supported Python | ||
# version - v3.8 in this case | ||
commands = | ||
py3-lint: python -m pylint setup.py | ||
py3-lint: python -m pylint ./src/{env:PROJECT_PATH} | ||
py38-lint: python -m pylint setup.py | ||
py38-lint: python -m pylint ./src/{env:PROJECT_PATH} | ||
test: python -m pytest {posargs} ./tests -v --cov-report html --cov {env:PROJECT_PATH} --no-cov-on-fail | ||
py3-docs: python -m sphinx -b html -a -n -W --keep-going ./docs ./htmldocs | ||
py38-docs: python -m sphinx -b html -a -n -W --keep-going ./docs ./htmldocs |