-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
47 lines (44 loc) · 1.16 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
[tox]
isolated_build = True
envlist =
py{38,39,310,311,312}-dj42-sqlite
py{310,311,312}-dj50-{sqlite,pg2,pg3,mysql}
py{310,311,312}-dj51-sqlite
py{310,311,312}-djmain-sqlite
[testenv]
pip_pre = True
deps =
dj42: django~=4.2.0
dj50: django~=5.0.0
dj51: django~=5.1b
djmain: https://github.com/django/django/archive/main.tar.gz
pytest
pytest-cov
pytest-django
pytest-mock
dj-database-url
pg2: psycopg2-binary
pg3: psycopg[binary]
mysql: mysqlclient
setenv =
PYTHONPATH = {toxinidir}
PYTHONWARNINGS = d
DJANGO_SETTINGS_MODULE = tests.testproject.settings
pg2,pg3: DATABASE_URL = {env:DATABASE_URL:postgresql://django_safemigrate:django_safemigrate@localhost/django_safemigrate}
mysql: DATABASE_URL = {env:DATABASE_URL:mysql://django_safemigrate:[email protected]/django_safemigrate}
sqlite: DATABASE_URL = {env:DATABASE_URL:sqlite:///:memory:}
commands =
python -m coverage run -m pytest {posargs}
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
[gh-actions:env]
DB =
mysql: mysql
pg2: pg2
pg3: pg3
sqlite: sqlite