-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
84 lines (75 loc) · 1.72 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
[tox]
envlist =
# Django 5.1 for Python 3.10+
py{310,311,312}-django51-{postgres,mysql,sqlite}-{rabbitmq,kafka,redis,aws,gcp},
# Django 3.2 and 4.2 for Python 3.8+
py{38,39,310,311,312}-django{32,42}-{postgres,mysql,sqlite}-{rabbitmq,kafka,redis,aws,gcp},
isolated_build = True
ignore_basepython_conflict = true
[testenv]
deps =
django32: Django>=3.2,<4.0
django42: Django>=4.2,<5.0
django51: Django>=5.1,<6.0
redis: redis
aws: boto3
rabbitmq: aio_pika
kafka: aiokafka
gcp: google-cloud-pubsub
aiohttp
model_bakery
aioresponses
pytest-asyncio
pytest-django
commands = pytest {posargs}
setenv =
DJANGO_SETTINGS_MODULE = tests.settings
PYTHONPATH = {toxinidir}:{envsitepackagesdir}
allowlist_externals =
pytest
[testenv:postgres]
description = Test against PostgreSQL
deps =
{[testenv]deps}
psycopg2
setenv =
DB_ENGINE = django.db.backends.postgresql
DB_NAME = action_triggers
DB_USER = postgres
DB_PASSWORD = postgres
DB_HOST = localhost
DB_PORT = 5440
[testenv:mysql]
description = Test against MySQL
deps =
{[testenv]deps}
mysqlclient
setenv =
DB_ENGINE = django.db.backends.mysql
DB_NAME = action_triggers
DB_USER = root
DB_PASSWORD = root
DB_HOST = 127.0.0.1
DB_PORT = 3307
[testenv:sqlite]
description = Test against SQLite
deps =
{[testenv]deps}
setenv =
DB_ENGINE = django.db.backends.sqlite3
DB_NAME = :memory:
[testenv:rabbitmq]
description = Test against RabbitMQ
deps =
{[testenv]deps}
aio_pika
setenv =
RABBIT_MQ_HOST = localhost
RABBIT_MQ_PORT = 5680
[testenv:kafka]
description = Test against Kafka
deps =
{[testenv]deps}
aiokafka
setenv =
KAFKA_CONN_DETAILS = {"bootstrap_servers": "localhost:9092"}