-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
53 lines (45 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
[tox]
skipsdist = True
envlist = integration_bigquery
[sqlfluff]
exclude_rules = ST07, AM04, CV03, LT05, ST06, RF04, AM06, ST05, LT02, CP02, LT07
dialect = bigquery
templater = dbt
deps =
sqlfluff-templater-dbt==3.*
dbt-bigquery~=1.8.2
[testenv]
passenv =
GITHUB_SHA
GITHUB_SHA_OVERRIDE
DBT_BQ_MONITORING_GCP_PROJECTS
DBT_ENV_SECRET_BIGQUERY_TEST_SERVICE_ACCOUNT
DBT_ENV_SECRET_BIGQUERY_TEST_STORAGE_PROJECT
DBT_ENV_SECRET_BIGQUERY_TEST_EXECUTION_PROJECT
DBT_ENV_SECRET_BIGQUERY_TEST_LOCATION
[testenv:lint]
deps = {[sqlfluff]deps}
commands = sqlfluff lint {posargs} --ignore parsing
[testenv:lint_all]
deps = {[sqlfluff]deps}
commands =
dbt deps
sqlfluff lint models --ignore parsing
[testenv:fix]
deps = {[sqlfluff]deps}
commands = sqlfluff fix {posargs} --ignore parsing
[testenv:fix_all]
deps = {[sqlfluff]deps}
commands = sqlfluff fix models --ignore parsing
[testenv:generate_docs]
deps = dbt-bigquery~=1.8.2
commands = dbt docs generate
[testenv:bigquery]
; This test env just runs the package as it would normally be installed, using the bigquery database as a source
changedir = integration_tests
deps = dbt-bigquery~=1.8.2
commands =
dbt deps
dbt run -s tag:fixtures
dbt build -s dbt_bigquery_monitoring --full-refresh --empty
dbt build -s dbt_bigquery_monitoring --empty