forked from sontek/pyramid_celery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
35 lines (30 loc) · 776 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
[tox]
skipsdist = True
envlist = py36, py37, py38, py39, pypy3, flake8, celery4, celery5
[base]
commands =
{envpython} -m pip install -e . -r test-requirements.txt
[testenv]
pip_pre=False
commands =
{[base]commands}
{envpython} -m pytest {posargs}
{envpython} -m pytest {posargs} \
--cov=pyramid_celery \
--cov-report=xml \
--cov-report=term-missing
[testenv:flake8]
basepython=python3
commands =
{envpython} -m pip install flake8
flake8 pyramid_celery/ tests/
[testenv:celery5]
commands =
{[base]commands}
{envpython} -m pip install -U 'celery>4,<6'
{envpython} -m pytest {posargs}
[testenv:celery4]
commands =
{[base]commands}
{envpython} -m pip install -U 'celery>3,<5'
{envpython} -m pytest {posargs}