forked from dbt-labs/dbt-spark
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
86 lines (79 loc) · 2.45 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
78
79
80
81
82
83
84
85
86
[tox]
skipsdist = True
envlist = unit, flake8, integration-spark-thrift
[testenv:{unit,py37,py38,py39,py310,py}]
allowlist_externals =
/bin/bash
commands = /bin/bash -c '{envpython} -m pytest -v {posargs} tests/unit'
passenv =
DBT_*
PYTEST_ADDOPTS
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/dev-requirements.txt
[testenv:integration-spark-databricks-http]
allowlist_externals =
/bin/bash
basepython = python3.8
commands = /bin/bash -c '{envpython} -m pytest -v --profile databricks_http_cluster {posargs} -n4 tests/functional/adapter/*'
passenv =
DBT_*
PYTEST_ADDOPTS
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/dev-requirements.txt
-e.
[testenv:integration-spark-databricks-odbc-cluster]
allowlist_externals =
/bin/bash
basepython = python3.8
commands = /bin/bash -c '{envpython} -m pytest -v --profile databricks_cluster {posargs} -n4 tests/functional/adapter/*'
/bin/bash -c '{envpython} -m pytest -v -m profile_databricks_cluster {posargs} -n4 tests/integration/*'
passenv =
DBT_*
PYTEST_ADDOPTS
ODBC_DRIVER
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/dev-requirements.txt
-e.
[testenv:integration-spark-databricks-odbc-sql-endpoint]
allowlist_externals =
/bin/bash
basepython = python3.8
commands = /bin/bash -c '{envpython} -m pytest -v --profile databricks_sql_endpoint {posargs} -n4 tests/functional/adapter/*'
/bin/bash -c '{envpython} -m pytest -v -m profile_databricks_sql_endpoint {posargs} -n4 tests/integration/*'
passenv =
DBT_*
PYTEST_ADDOPTS
ODBC_DRIVER
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/dev-requirements.txt
-e.
[testenv:integration-spark-thrift]
allowlist_externals =
/bin/bash
basepython = python3.8
commands = /bin/bash -c '{envpython} -m pytest -v --profile apache_spark {posargs} -n4 tests/functional/adapter/*'
/bin/bash -c '{envpython} -m pytest -v -m profile_apache_spark {posargs} -n4 tests/integration/*'
passenv =
DBT_*
PYTEST_ADDOPTS
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/dev-requirements.txt
-e.
[testenv:integration-spark-session]
allowlist_externals =
/bin/bash
basepython = python3
commands = /bin/bash -c '{envpython} -m pytest -v --profile spark_session {posargs} -n4 tests/functional/adapter/*'
passenv =
DBT_*
PYTEST_*
PIP_CACHE_DIR
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/dev-requirements.txt
-e.[session]