diff --git a/tox.ini b/tox.ini index e456d55d0..4e9f66c28 100644 --- a/tox.ini +++ b/tox.ini @@ -57,6 +57,9 @@ deps = [testenv:integration-spark-thrift] description = run integration tests against a Spark thrift server +allowlist_externals = + /bin/bash +basepython = python3.9 passenv = DBT_* PYTEST_ADDOPTS @@ -64,7 +67,7 @@ deps = -r{toxinidir}/requirements.txt -r{toxinidir}/dev-requirements.txt -e. -commands = pytest -v --profile apache_spark {posargs} -n4 tests/functional/adapter/* +commands = /bin/bash -c '{envpython} -m pytest -v --profile apache_spark {posargs} -n4 tests/functional/adapter/*' [testenv:integration-spark-session] description = run integration tests against a Spark session @@ -76,4 +79,4 @@ deps = -r{toxinidir}/requirements.txt -r{toxinidir}/dev-requirements.txt -e.[session] -commands = pytest -v --profile spark_session {posargs} -n4 tests/functional/adapter/* +commands = /bin/bash -c '{envpython} -m pytest -v --profile spark_session {posargs} -n4 tests/functional/adapter/*'