Skip to content

Commit 9e1d393

Browse files
Pin upstream version of opentelemetry when running tests (#270)
Fix in #254 didn't apply to tox environments that run `pip install .` `test_detects_gce` was failing with opentelemetry-sdk version 1.19.0 instead of 1.18.0 Co-authored-by: Aaron Abbott <[email protected]>
1 parent 591b3bc commit 9e1d393

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tox.ini

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,14 @@ passenv = SKIP_GET_MOCK_SERVER
6565
changedir = {env:PACKAGE_NAME}
6666

6767
commands_pre =
68-
pip install .
68+
pip install -c {toxinidir}/dev-constraints.txt .
6969
{toxinidir}/get_mock_server.sh {envbindir}
7070

7171
commands = pytest --junitxml={[constants]test_results_dir}/{envname}/junit.xml {posargs}
7272

73-
whitelist_externals = bash
73+
allowlist_externals =
74+
bash
75+
{toxinidir}/get_mock_server.sh
7476

7577
[testenv:{lint,mypy}-ci-{cloudtrace,cloudmonitoring,propagator,resourcedetector}]
7678
basepython = {[constants]dev_basepython}
@@ -80,7 +82,7 @@ deps =
8082
changedir = {env:PACKAGE_NAME}
8183

8284
commands_pre =
83-
pip install .
85+
pip install -c {toxinidir}/dev-constraints.txt .
8486

8587
commands =
8688
lint: black . --diff --check
@@ -98,7 +100,7 @@ deps =
98100
commands =
99101
make -C docs/ clean html
100102

101-
whitelist_externals =
103+
allowlist_externals =
102104
make
103105
bash
104106

0 commit comments

Comments
 (0)