From 80bdcd9c0901c1358bcd96741b265edb1331f723 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Mon, 6 Apr 2020 11:03:47 +0200 Subject: [PATCH] tox.ini: add py3 run (#41302) --- tox.ini | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/tox.ini b/tox.ini index 2f0f9ab..2701b7e 100644 --- a/tox.ini +++ b/tox.ini @@ -1,28 +1,35 @@ [tox] -envlist = coverage-dj111-pylint +envlist = py27-coverage-dj111,py3-coverage-{dj111,dj22} toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/petale/ [testenv] usedevelop=True -basepython = python2 setenv = DJANGO_SETTINGS_MODULE=petale.settings PETALE_SETTINGS_FILE=tests/settings.py coverage: COVERAGE=--junitxml=test_results.xml --cov-report xml --cov-report html --cov=petale/ --cov-config .coveragerc deps = - dj18: django>=1.8,<1.9 - dj111: django>=1.11,<1.12 + dj111: django>=1.11,<2 + dj22: django>=2.2,<2.3 pytest-cov - pytest-django<3.4.6 + pytest-django pytest pylint<1.8 pylint-django<0.8.1 mock django-webtest<1.9.3 - dj18: djangorestframework<3.4 psycopg2 pyquery commands = python setup.py compile_translations py.test {env:COVERAGE:} {posargs:tests/} - pylint: ./pylint.sh petale/ + +[testenv:pylint] +deps = + pylint<1.8 + pylint-django<0.8.1 +commands = + /bin/bash -c "./pylint.sh petale/" + +[pytest] +junit_family=xunit2