Skip to content

Commit

Permalink
Refactor tox.ini
Browse files Browse the repository at this point in the history
  • Loading branch information
kadircancetin committed Aug 6, 2020
1 parent 7878705 commit da506a8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 0 additions & 2 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
Django >= 2.2
djangorestframework>=3.9.2
Pillow >= 6.2.1
pytest-django
pytest-cov
Expand Down
12 changes: 10 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
[tox]
envlist = flake8,py35,py36,py37,py38
envlist =
flake8,
py{35,36,37}-drf3-django{22},
py{36,37,38}-drf3-django{30,31}

[testenv]
deps = -r requirements_dev.txt
deps =
django22: Django>=2.2,<2.3
django30: Django>=3.0,<3.1
django31: Django>=3.1,<3.2
drf3: djangorestframework>=3
-r requirements_dev.txt
commands =
py.test {posargs} --cov-report=xml --cov
passenv =
Expand Down

0 comments on commit da506a8

Please sign in to comment.