-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into bigquery-table-expiry
- Loading branch information
Showing
6 changed files
with
126 additions
and
133 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Integration Testing | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
environment: | ||
name: ci_testing | ||
strategy: | ||
fail-fast: true | ||
max-parallel: 3 | ||
matrix: | ||
python-version: [ "3.11"] # "3.10", "3.12"] | ||
dbt-version: ["1.7.0"] # "1.6.0", , "1.8.0b1"] | ||
data-platform: ["redshift", "snowflake", "bigquery"] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dbt-${{ matrix.data-platform }}~=${{ matrix.dbt-version }} | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install "dbt-${{ matrix.data-platform }}~=${{ matrix.dbt-version }}" "dbt-core~=${{ matrix.dbt-version }}" | ||
- name: run integration_tests project on ${{ matrix.data-platform }} | ||
run: | | ||
cd integration_tests | ||
export DBT_PROFILES_DIR=. | ||
dbt deps --target ${{ matrix.data-platform }} | ||
dbt seed --full-refresh --target ${{ matrix.data-platform }} | ||
dbt run-operation prep_external --target ${{ matrix.data-platform }} | ||
dbt run-operation dbt_external_tables.stage_external_sources --vars 'ext_full_refresh: true' --target ${{ matrix.data-platform }} | ||
dbt run-operation dbt_external_tables.stage_external_sources --target ${{ matrix.data-platform }} | ||
dbt test --target ${{ matrix.data-platform }} | ||
env: | ||
REDSHIFT_TEST_HOST: ${{ secrets.REDSHIFT_TEST_HOST }} | ||
REDSHIFT_TEST_USER: ${{ secrets.REDSHIFT_TEST_USER }} | ||
REDSHIFT_TEST_PASS: ${{ secrets.REDSHIFT_TEST_PASS }} | ||
REDSHIFT_TEST_PORT: ${{ secrets.REDSHIFT_TEST_PORT }} | ||
REDSHIFT_TEST_DBNAME: ${{ secrets.REDSHIFT_TEST_DBNAME }} | ||
REDSHIFT_SPECTRUM_IAM_ROLE: ${{ secrets.REDSHIFT_SPECTRUM_IAM_ROLE }} | ||
SNOWFLAKE_TEST_ACCOUNT: ${{ secrets.SNOWFLAKE_TEST_ACCOUNT }} | ||
SNOWFLAKE_TEST_USER: ${{ secrets.SNOWFLAKE_TEST_USER }} | ||
SNOWFLAKE_TEST_PASS: ${{ secrets.SNOWFLAKE_TEST_PASS }} | ||
SNOWFLAKE_TEST_WHNAME: ${{ secrets.SNOWFLAKE_TEST_WHNAME }} | ||
SNOWFLAKE_TEST_ROLE: ${{ secrets.SNOWFLAKE_TEST_ROLE }} | ||
SNOWFLAKE_TEST_DBNAME: ${{ secrets.SNOWFLAKE_TEST_DBNAME }} | ||
BIGQUERY_TEST_PROJECT: ${{ secrets.BIGQUERY_TEST_PROJECT }} | ||
BIGQUERY_PRIVATE_KEY: ${{ secrets.BIGQUERY_PRIVATE_KEY }} | ||
BIGQUERY_PRIVATE_KEY_ID: ${{ secrets.BIGQUERY_PRIVATE_KEY_ID }} | ||
BIGQUERY_CLIENT_EMAIL: ${{ secrets.BIGQUERY_CLIENT_EMAIL }} | ||
BIGQUERY_CLIENT_ID: ${{ secrets.BIGQUERY_CLIENT_ID }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ | |
**/logs/ | ||
**/env/ | ||
**/venv/ | ||
**/test.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# gh secret set -f integration_tests/test.env -e ci_testing | ||
|
||
# redshift | ||
REDSHIFT_TEST_HOST= | ||
REDSHIFT_TEST_USER= | ||
REDSHIFT_TEST_PASS= | ||
REDSHIFT_TEST_DBNAME= | ||
REDSHIFT_TEST_PORT= | ||
REDSHIFT_SPECTRUM_IAM_ROLE= | ||
|
||
# snowflake | ||
|
||
SNOWFLAKE_TEST_ACCOUNT= | ||
SNOWFLAKE_TEST_USER= | ||
SNOWFLAKE_TEST_PASS= | ||
SNOWFLAKE_TEST_ROLE= | ||
SNOWFLAKE_TEST_DBNAME= | ||
SNOWFLAKE_TEST_WHNAME= | ||
|
||
# bigquery | ||
BIGQUERY_PRIVATE_KEY= | ||
BIGQUERY_PRIVATE_KEY_ID= | ||
BIGQUERY_CLIENT_EMAIL= | ||
BIGQUERY_CLIENT_ID= | ||
BIGQUERY_TEST_PROJECT= | ||
|
||
# databricks | ||
DATABRICKS_TEST_HOST= | ||
DATBRICKS_TEST_ENDPOINT= | ||
DATABRICKS_TOKEN= | ||
|
||
# msft | ||
SYNAPSE_TEST_SERVER= | ||
SYNAPSE_TEST_DBNAME= | ||
SYNAPSE_TEST_USER= | ||
SYNAPSE_TEST_PASS= | ||
|
||
AZURESQL_TEST_SERVER= | ||
AZURESQL_TEST_DBNAME= | ||
AZURESQL_TEST_USER= | ||
AZURESQL_TEST_PASS= |