Skip to content

Commit

Permalink
Add Trino support for integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Emin UZUN committed Dec 19, 2023
1 parent f3c8bb1 commit 9b9c99d
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 4 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/ci_test_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
strategy:
fail-fast: false # Don't fail one DWH if the others fail
matrix:
warehouse: ["snowflake", "bigquery", "postgres"]
warehouse: ["snowflake", "bigquery", "postgres", "trino"]
runs-on: ubuntu-latest
environment:
name: Approve Integration Tests
Expand All @@ -58,6 +58,11 @@ jobs:
ports:
- 5432:5432

trino:
image: trinodb/trino
ports:
- 8080:8080

steps:
- name: Get latest release
uses: rez0n/actions-github-release@main
Expand Down Expand Up @@ -113,7 +118,7 @@ jobs:
strategy:
fail-fast: false # Don't fail one DWH if the others fail
matrix:
warehouse: ["snowflake", "bigquery", "postgres"]
warehouse: ["snowflake", "bigquery", "postgres", "trino"]
# When supporting a new version, update the list here
version: ["1_3_0", "1_4_0", "1_5_0", "1_6_0", "1_7_0"]
runs-on: ubuntu-latest
Expand All @@ -136,6 +141,11 @@ jobs:
ports:
- 5432:5432

trino:
image: trinodb/trino
ports:
- 8080:8080

steps:
- uses: actions/setup-python@v4
with:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/main_test_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
integration:
strategy:
matrix:
warehouse: ["snowflake", "bigquery", "postgres"]
warehouse: ["snowflake", "bigquery", "postgres", "trino"]
version: ["1_3_0", "1_4_0", "1_5_0", "1_6_0", "1_7_0"]
runs-on: ubuntu-latest
permissions:
Expand All @@ -54,6 +54,11 @@ jobs:
ports:
- 5432:5432

trino:
image: trinodb/trino
ports:
- 8080:8080

steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ The package currently supports
- Snowflake :white_check_mark:
- Google BigQuery :white_check_mark:
- Postgres :white_check_mark:
- Trino :white_check_mark:

Models included:

Expand Down
2 changes: 1 addition & 1 deletion integration_test_project/profiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,5 @@ dbt_artifacts:
host: localhost
database: datalake
schema: dbt
port: 8181
port: 8080
threads: 8
31 changes: 31 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,37 @@ commands =
dbt deps
dbt build --target trino

[testenv:integration_trino_1_3_0]
changedir = integration_test_project
deps = dbt-trino~=1.3.0
commands =
dbt clean
dbt deps
dbt build --target trino

[testenv:integration_trino_1_4_0]
changedir = integration_test_project
deps = dbt-trino~=1.4.0
commands =
dbt clean
dbt deps
dbt build --target trino

[testenv:integration_trino_1_5_0]
changedir = integration_test_project
deps = dbt-trino~=1.5.0
commands =
dbt clean
dbt deps
dbt build --target trino

[testenv:integration_trino_1_6_0]
changedir = integration_test_project
deps = dbt-trino~=1.6.0
commands =
dbt clean
dbt deps
dbt build --target trino

[testenv:integration_trino_1_7_0]
changedir = integration_test_project
Expand Down

0 comments on commit 9b9c99d

Please sign in to comment.