-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathtox.ini
More file actions
75 lines (71 loc) · 1.91 KB
/
tox.ini
File metadata and controls
75 lines (71 loc) · 1.91 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
[tox]
envlist =
py{310,311,312,313,314}-django52-{sqlite,mysql,postgresql}
py{312,313,314}-django60-{sqlite,mysql,postgresql}
py{310,311,312}-django42-{sqlite,mysql,postgresql}
qa
docs
skip_missing_interpreters = True
sitepackages = False
[gh-actions]
python =
3.10: py310
3.11: py311
3.12: py312
3.13: py313
3.14: py314
[testenv]
usedevelop = true
commands =
mysql: mysql -u root -h {env:DB_HOST} --password={env:DB_PASSWORD} --protocol tcp -e 'drop database if exists test_dbdiff_test;'
postgresql: psql -U postgres -h {env:DB_HOST} -c 'drop database if exists test_dbdiff_test;'
pytest -vv --cov dbdiff --create-db --strict -r fEsxXw {posargs:dbdiff}
allowlist_externals =
mysql
psql
deps =
pytest
pytest-django
pytest-cov
mock
coverage
django52: Django>=5.2,<6.0
django60: Django>=6.0,<6.1
django42: Django>=4.2,<5.0
postgresql-django42: psycopg2-binary
postgresql-django52: psycopg2-binary
postgresql-django60: psycopg[binary]
mysql: mysqlclient
setenv =
PIP_ALLOW_EXTERNAL=true
DJANGO_SETTINGS_MODULE=dbdiff.tests.project.settings
sqlite: DJANGO_SETTINGS_MODULE=dbdiff.tests.project.settings_sqlite
postgresql: DJANGO_SETTINGS_MODULE=dbdiff.tests.project.settings_postgresql
postgresql: DB_NAME=dbdiff_test
postgresql: DB_ENGINE=postgresql_psycopg2
postgresql: DB_USER=postgres
mysql: DJANGO_SETTINGS_MODULE=dbdiff.tests.project.settings_mysql
mysql: DB_NAME=dbdiff_test
mysql: DB_ENGINE=mysql
mysql: DB_USER=root
passenv =
TEST_*
DBDIFF_*
DB_*
PGPASSWORD
[testenv:qa]
basepython = python3.12
commands =
ruff check dbdiff
deps =
ruff
[testenv:docs]
basepython = python3.12
usedevelop = true
commands =
sphinx-build -W -b html docs docs/_build/html
deps =
sphinx
Django>=5.2,<6.0
setenv =
DJANGO_SETTINGS_MODULE=dbdiff.tests.project.settings_sqlite