forked from jazzband/django-redshift-backend
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
58 lines (53 loc) · 1.07 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
[tox]
envlist =
py{36,37}-dj{22,32}
py{38,39,310}-dj{22,32,40,main}
flake8
check
skipsdist = True
[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39
3.10: py310, flake8, check
[gh-actions:env]
DJANGO =
2.2: dj22
3.2: dj32
4.0: dj40
main: djmain
[testenv]
deps =
coverage
psycopg2-binary>=2.7
pytest
pytest-cov
mock>=2.0
dj22: Django>=2.2,<2.3
dj32: Django>=3.2,<3.3
dj40: Django>=4.0,<4.1
djmain: https://github.com/django/django/archive/main.tar.gz
setenv =
DJANGO_SETTINGS_MODULE = settings
PYTHONPATH = {toxinidir}
TEST_WITH_POSTGRES = {env:TEST_WITH_POSTGRES:}
pip_pre = True
commands =
pytest -v --cov django_redshift_backend --cov-append --cov-report term-missing --cov-report=xml {posargs}
ignore_outcome =
djmain: True
ignore_errors =
djmain: True
[testenv:flake8]
basepython = python3
deps = flake8
commands = flake8 django_redshift_backend tests
[testenv:check]
deps =
twine
wheel
commands =
python setup.py sdist bdist_wheel
twine check dist/*