forked from uc-cdis/indexclient
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
77 lines (69 loc) · 1.68 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
[tox]
envlist= py37,py38,py39,p310,py311
skip_missing_interpreters = True
isolated_build = True
[testenv]
passenv =
PG_INDEXD_HOST
setenv =
NO_PROXY=localhost,postgres
no_proxy=localhost,postgres
USE_PYTEST_INDEXD=true
extras=
dev
install_command = python -m pip install {opts} {packages}
commands=
python -m pytest -lv --cov-report xml --cov-report html --junit-xml report.xml {posargs}
[testenv:fixtures]
passenv =
PG_*
setenv =
NO_PROXY=localhost,postgres
no_proxy=localhost,postgres
USE_PYTEST_INDEXD=false
extras=
dev
install_command = python -m pip install {opts} {packages}
commands=
python -m pytest {posargs: -lvvvs tests/integration/test_client.py}
[testenv:plugin]
passenv =
PG_*
USE_*
setenv =
USE_RUNNING_PG=true
USE_PYTEST_INDEXD=true
NO_PROXY=localhost,postgres
no_proxy=localhost,postgres
; MacOS requires the following environment variable to run test in parallel
OBJC_DISABLE_INITIALIZE_FORK_SAFETY = YES
extras=
pytest_indexd
install_command = python -m pip install {opts} {packages}
commands=
# Limit the number of processes to avoid postgres too many clients already
python -m pytest {posargs: -lvvvs tests/integration}
[testenv:lint]
basepython = python3.8
skip_install = True
commands_pre =
deps =
pre-commit
commands =
pre-commit run --all-files --show-diff-on-failure {posargs: }
[testenv:publish]
passenv =
TWINE_*
skip_install=true
deps =
setuptools_scm
build
twine
install_command =
python -m pip install {opts} {packages}
commands =
python -m setuptools_scm
python -m build
python -m twine check dist/*
python -m twine upload dist/*
commands_post=