forked from GaretJax/django-click
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
34 lines (28 loc) · 807 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]
# Having the .tox directory in the project directory slows down the
# `pip install -e .` step required by `usedevelop = true` considerably.
# By moving it out of the way (~500MB), we trim test execution time by > 80%.
toxworkdir = {homedir}/.toxenvs/django-click
envlist =
dj{22,31,32},flake8
[gh-actions]
django =
2.2: dj22
3.1: dj31
3.2: dj32
[testenv]
usedevelop = true
passenv = LC_ALL, LANG, LC_CTYPE
setenv =
DJANGO_SETTINGS_MODULE=testprj.settings
PYTHONPATH={toxinidir}/djclick/test/testprj
deps =
-rrequirements-test.txt
dj22: django>=2.2,<2.3
dj31: django>=3.1,<3.2
dj32: django>=3.2,<3.3
commands = py.test -rxs --cov-report= --cov-append --cov djclick {posargs:djclick}
[testenv:flake8]
commands = flake8 djclick
[flake8]
max-line-length = 88