Skip to content

Commit

Permalink
added redshift tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin committed Jan 3, 2024
1 parent d57f58d commit b419788
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 2 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/dbt_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,40 @@ jobs:
- name: dbt test
run: dbt test --target ${DBT_TARGET}

test-mysql:
name: Test on MySQL
runs-on: ubuntu-latest
container:
image: python:3.11

services:
mysql:
image: mysql
env:
MYSQL_USER: mysql
MYSQL_PASSWORD: mysql

env:
DBT_TARGET: mysql

steps:
- uses: actions/checkout@v4

- name: pip install
run: pip install dbt-core dbt-${DBT_TARGET}

- name: Install DBT deps
run: dbt deps --target ${DBT_TARGET}

- name: load test data
run: dbt seed --target ${DBT_TARGET}

- name: Create seed tests
run: bash tests/create_seeds_tests_yml.sh

- name: dbt test
run: dbt test --target ${DBT_TARGET}

test-snowflake:
name: Test on Snowflake
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ models:
## Supported Databases
The following databases are supported:
- Snowflake
- RedShift
- Postgres
- DuckDB
Expand Down
11 changes: 9 additions & 2 deletions integration_tests/profiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,14 @@ integration_tests:
user: postgres
password: postgres
port: 5432
dbname: postgres # or database instead of dbname
dbname: postgres
schema: public
mysql:
type: mysql
host: mysql
username: mysql
password: mysql
port: 3306
schema: public
snowflake:
type: snowflake
Expand All @@ -43,7 +50,7 @@ integration_tests:
type: redshift
host: dbt-testgen.117819748843.us-east-1.redshift-serverless.amazonaws.com
user: dbt_testgen
password: mw*gXe9JMvp!0v%E #"{{ env_var('REDSHIFT_PASSWORD') }}"
password: "{{ env_var('REDSHIFT_PASSWORD') }}"
dbname: dbt_testgen
schema: dbt_testgen
port: 5439

0 comments on commit b419788

Please sign in to comment.