forked from wellcomecollection/python-gearman
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtox.ini
More file actions
53 lines (46 loc) · 1.18 KB
/
tox.ini
File metadata and controls
53 lines (46 loc) · 1.18 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
[tox]
envlist = py27, py35, py36, py37, py38, py39, py310, py311, py312, py313, lint
[testenv]
description = Tests
deps =
-r{toxinidir}/dev_requirements.txt
commands =
coverage run -m py.test {posargs} {toxinidir}/tests/
coverage report
coverage xml
[testenv:lint]
description = Lint source, tools and tests
deps = flake8
commands = flake8 --max-complexity 10 gearman tools tests --ignore=E221,E266,E501 --builtins=unicode
[testenv:check_release_file]
description =
deps =
commands = python tools/check-release-file.py
[testenv:deploy]
description =
deps =
-r{toxinidir}/tool_requirements.txt
commands = python tools/deploy.py
passenv = PYPI_USERNAME PYPI_PASSWORD TRAVIS_SECURE_ENV_VARS encrypted_83630750896a_key encrypted_83630750896a_iv
[testenv:requirements]
description = Compile *_requirements.in files
deps = pip-tools
commands =
pip-compile dev_requirements.in
pip-compile tool_requirements.in
; tox-gh plugin for GitHub Actions
[gh]
python =
3.13 = py313, lint
3.12 = py312
3.11 = py311
3.10 = py310
3.9 = py39
3.8 = py38
3.7 = py37
3.6 = py36
3.5 = py35
2.7 = py27
[coverage:run]
relative_files = True
source = gearman/