-
Notifications
You must be signed in to change notification settings - Fork 299
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from robdox/master
Implement tox for testing against all python/django versions.
- Loading branch information
Showing
8 changed files
with
58 additions
and
7 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
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
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# tox (https://tox.readthedocs.io/) is a tool for running tests | ||
# in multiple virtualenvs. This configuration file will run the | ||
# test suite on all supported python versions. To use it, "pip install tox" | ||
# and then run "tox" from this directory. | ||
|
||
# Running this tox will test against all supported version | ||
# combinations of python and django as described at the following | ||
# https://docs.djangoproject.com/en/3.0/faq/install/#what-python-version-can-i-use-with-django | ||
# https://endoflife.date/django | ||
[tox] | ||
skipsdist = true | ||
envlist = | ||
python{3.5,3.6,3.7,3.8}-django22 | ||
python{3.6,3.7,3.8}-django30 | ||
|
||
[testenv] | ||
commands = | ||
python ./runtests.py | ||
deps = | ||
-rdev-requirements.txt | ||
django22: Django>=2.2,<2.3 | ||
django30: Django>=3.0,<3.1 | ||
|
||
# Configuration for coverage and flake8 is being set in `./setup.cfg` | ||
[testenv:coverage] | ||
commands = | ||
coverage run ./runtests.py | ||
coverage report | ||
deps = | ||
-rdev-requirements.txt | ||
|
||
[testenv:flake8] | ||
changedir = {toxinidir}/dj_rest_auth | ||
commands = | ||
flake8 . | ||
deps = | ||
flake8==3.8.1 |