diff --git a/.github/workflows/dbt_test.yml b/.github/workflows/dbt_test.yml index f11f5e0..8e0ca27 100644 --- a/.github/workflows/dbt_test.yml +++ b/.github/workflows/dbt_test.yml @@ -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 diff --git a/README.md b/README.md index 1a9d425..ef277e6 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,7 @@ models: ## Supported Databases The following databases are supported: - Snowflake +- RedShift - Postgres - DuckDB diff --git a/integration_tests/profiles.yml b/integration_tests/profiles.yml index 8254738..2629915 100644 --- a/integration_tests/profiles.yml +++ b/integration_tests/profiles.yml @@ -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 @@ -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 \ No newline at end of file