forked from sontek/pyramid_celery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
51 lines (44 loc) · 1.13 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
[tox]
skipsdist = True
envlist = py{36,37,38,39,310,py3}-{celery4,celery5}, py{311,312}-celery5, flake8
[base]
commands =
{envpython} -m pip install -e . -r requirements.txt -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}
[gh-actions]
python =
3.6: py36-{celery4,celery5}
3.7: py37-{celery4,celery5}
3.8: py38-{celery4,celery5}
3.9: py39-{celery4,celery5}
3.10: py310-{celery4,celery5}, flake8
3.11: py311-celery5
3.12: py312-celery5
[gh-actions:env]
PLATFORM =
ubuntu-latest: linux
macos-latest: macos
windows-latest: windows