forked from databricks/dbt-databricks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
87 lines (80 loc) · 2.91 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
87
[tox]
skipsdist = True
envlist = linter, unit
[testenv:linter]
basepython = python3
commands =
{envpython} -m black --config black.ini --check dbt tests
{envpython} -m flake8 --select=E,W,F --ignore=E203,W503 --max-line-length=100 dbt tests
{envpython} -m mypy --config-file mypy.ini --explicit-package-bases dbt tests
passenv =
DBT_*
PYTEST_ADDOPTS
deps =
-r{toxinidir}/dev-requirements.txt
-r{toxinidir}/requirements.txt
[testenv:black]
basepython = python3
commands = {envpython} -m black --config black.ini .
passenv =
DBT_*
PYTEST_ADDOPTS
deps =
-r{toxinidir}/dev-requirements.txt
[testenv:unit]
basepython = python3
commands = {envpython} -m pytest --color=yes -v {posargs} tests/unit
passenv =
DBT_*
PYTEST_ADDOPTS
deps =
-r{toxinidir}/dev-requirements.txt
-r{toxinidir}/requirements.txt
[testenv:integration-databricks-cluster]
basepython = python3
commands =
/bin/bash -c '{envpython} -m pytest -v -m profile_databricks_cluster -n4 tests/integration/* {posargs}; ret=$?; [ $ret = 5 ] && exit 0 || exit $ret'
/bin/bash -c '{envpython} -m pytest -v --profile databricks_cluster -n4 tests/functional/adapter/* {posargs}; ret=$?; [ $ret = 5 ] && exit 0 || exit $ret'
passenv =
DBT_*
PYTEST_ADDOPTS
deps =
-r{toxinidir}/dev-requirements.txt
-r{toxinidir}/requirements.txt
allowlist_externals = /bin/bash
[testenv:integration-databricks-uc-cluster]
basepython = python3
commands =
/bin/bash -c '{envpython} -m pytest -v -m profile_databricks_uc_cluster -n4 tests/integration/* {posargs}; ret=$?; [ $ret = 5 ] && exit 0 || exit $ret'
/bin/bash -c '{envpython} -m pytest -v --profile databricks_uc_cluster -n4 tests/functional/adapter/* {posargs}; ret=$?; [ $ret = 5 ] && exit 0 || exit $ret'
passenv =
DBT_*
PYTEST_ADDOPTS
deps =
-r{toxinidir}/dev-requirements.txt
-r{toxinidir}/requirements.txt
allowlist_externals = /bin/bash
[testenv:integration-databricks-sql-endpoint]
basepython = python3
commands =
/bin/bash -c '{envpython} -m pytest -v -m profile_databricks_sql_endpoint -n4 tests/integration/* {posargs}; ret=$?; [ $ret = 5 ] && exit 0 || exit $ret'
/bin/bash -c '{envpython} -m pytest -v --profile databricks_sql_endpoint -n4 tests/functional/adapter/* {posargs}; ret=$?; [ $ret = 5 ] && exit 0 || exit $ret'
passenv =
DBT_*
PYTEST_ADDOPTS
deps =
-r{toxinidir}/dev-requirements.txt
-r{toxinidir}/requirements.txt
allowlist_externals = /bin/bash
[testenv:integration-databricks-uc-sql-endpoint]
basepython = python3
commands =
/bin/bash -c '{envpython} -m pytest -v -m profile_databricks_uc_sql_endpoint -n4 tests/integration/* {posargs}; ret=$?; [ $ret = 5 ] && exit 0 || exit $ret'
/bin/bash -c '{envpython} -m pytest -v --profile databricks_uc_sql_endpoint -n4 tests/functional/adapter/* {posargs}; ret=$?; [ $ret = 5 ] && exit 0 || exit $ret'
passenv =
DBT_*
PYTEST_ADDOPTS
deps =
-r{toxinidir}/dev-requirements.txt
-r{toxinidir}/requirements.txt
allowlist_externals = /bin/bash