-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
57 lines (52 loc) · 1.32 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
[tox]
skipsdist = True
skip_missing_interpreters = True
envlist =
py3{8,9,10,11,12}-ao-prod
py3{8,9,10,11,12}-nh-staging
py3{8,9,10,11,12}-lambda
py3{8,9,10,11,12}-lint
[testenv]
setenv =
OTEL_PYTHON_DISABLED_INSTRUMENTATIONS = urllib3
SW_APM_DEBUG_LEVEL = 3
allowlist_externals = echo
deps =
-rdev-requirements.txt
commands_pre =
py3{8,9,10,11,12}: pip install --upgrade pip
py3{8,9,10,11,12}: pip install -Ie {toxinidir}
commands =
pytest {posargs}
[testenv:py3{8,9,10,11,12}-ao-prod]
changedir = tests
setenv =
SW_APM_COLLECTOR = collector.appoptics.com
SW_APM_SERVICE_KEY = foo-bar:service-key
[testenv:py3{8,9,10,11,12}-nh-staging]
changedir = tests
setenv =
SW_APM_COLLECTOR = apm.collector.st-ssp.solarwinds.com
SW_APM_SERVICE_KEY = foo-bar:service-key
[testenv:py3{8,9,10,11,12}-lambda]
changedir = lambda/tests
commands_pre =
py3{8,9,10,11,12}-lambda: pip install -r requirements.txt
[testenv:py3{8,9,10,11,12}-lambda-gh]
changedir = lambda/tests
commands_pre =
py3{8,9,10,11,12}-lambda: pip install -r requirements.txt
[testenv:py3{8,9,10,11,12}-lint]
deps =
opentelemetry-api
opentelemetry-sdk
opentelemetry-instrumentation
opentelemetry-instrumentation-logging
opentelemetry-exporter-otlp
pylint
flake8
isort
black
psutil
commands =
python scripts/lint_and_format.py {posargs}