Correctly set tox environments

This commit is contained in:
Gonçalo Valério 2021-01-20 17:50:50 +00:00
parent 5df0778388
commit fb423dcf83
2 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@ jobs:
strategy:
matrix:
python_version: [3.6, 3.7, 3.8]
django_version: ["django-22", "django-30"]
django_version: [2.2, 3.0]
steps:
- name: Checkout code

View File

@ -1,14 +1,14 @@
[tox]
envlist =
{py36,py37,py38}-django-{22,30}
{py3.6,py3.7,py3.8}-django{2.2,3.0}
[testenv]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/django_cryptolock
commands = pytest --cov=django_cryptolock tests/
deps =
django-22: django>=2.2,<3.0
django-30: django>=3.0,<3.1
django2.2: django>=2.2,<3.0
django3.0: django>=3.0,<3.1
-r {toxinidir}/requirements_test.txt
basepython =
py38: python3.8