forked from clokep/celery-batches
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
41 lines (37 loc) · 1022 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
35
36
37
38
39
40
41
[tox]
envlist =
{pypy3,3.7,3.8,3.9}-celery{44,50,51,52,master}-unit,
# Celery 5.2 added support for Python 3.10.
3.10-celery{52,master}-unit,
# Integration tests.
3.10-celery52-integration-{rabbitmq,redis},
flake8
isolated_build = True
[gh-actions]
python =
pypy-3: pypy3
3.7: 3.7
3.8: 3.8
3.9: 3.9
3.10: 3.10
[testenv]
deps=
-r{toxinidir}/requirements/test.txt
celery44: celery>=4.4,<4.5
celery50: celery>=5.0,<5.1
celery51: celery>=5.1,<5.2
# pypy3 seems to only have celery 5.2.0b3 available and not the final release.
celery52: celery>=5.2.0b3,<5.3
celerymaster: https://codeload.github.com/celery/celery/zip/master
# By default celery (via kombu) install py-amqp.
redis: celery[redis]
sitepackages = False
recreate = False
commands =
coverage run -m pytest --timeout=60
coverage html
setenv =
redis: TEST_BROKER=redis://
redis: TEST_BACKEND=redis://
rabbitmq: TEST_BROKER=pyamqp://
rabbitmq: TEST_BACKEND=rpc