forked from dimagi/django-cte
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
34 lines (29 loc) · 691 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
[tox]
envlist =
begincoverage,py{36,37,38,39}-dj{22,30,31,32},endcoverage,lint
skip_missing_interpreters = true
isolated_build = True
[testenv]
# install pytest in the virtualenv where commands will be executed
deps =
dj22: Django>=2.2,<3.0
dj30: Django>=3.0,<3.1
dj31: Django>=3.1,<3.2
dj32: Django>=3.2,<3.3
coverage
nose
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/tests/unit
commands =
coverage run --append {envdir}/bin/nosetests
[testenv:begincoverage]
deps=coverage
commands = coverage erase
[testenv:endcoverage]
deps=coverage
commands =
coverage report --omit='.tox/*'
[testenv:lint]
skip_install = true
deps = flake8
commands = flake8