-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tox support for testing redshift, bigquery and snowflake #320
Conversation
# TODO: below value - does it need to be secret or could we hard code it in tox and here? | ||
REDSHIFT_SPECTRUM_IAM_ROLE: ${{ secrets.REDSHIFT_SPECTRUM_IAM_ROLE }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we hardcode this? Is it actually a secret?
f81c935
to
9fbfa89
Compare
To get this working I will need the following added as variables instead of secrets:
The following need to be added as secrets
|
Co-authored-by: Anders <[email protected]>
REDSHIFT_HOST: ${{ vars.REDSHIFT_HOST }} | ||
REDSHIFT_USER: ${{ vars.REDSHIFT_USER }} | ||
REDSHIFT_PORT: ${{ vars.REDSHIFT_PORT }} | ||
REDSHIFT_DATABASE: ${{ vars.REDSHIFT_DATABASE }} | ||
REDSHIFT_SCHEMA: "integration_tests_redshift_${{ github.run_number }}" | ||
# snowflake | ||
SNOWFLAKE_USER: ${{ vars.SNOWFLAKE_USER }} | ||
SNOWFLAKE_WAREHOUSE: ${{ vars.SNOWFLAKE_WAREHOUSE }} | ||
SNOWFLAKE_ROLE: ${{ vars.SNOWFLAKE_ROLE }} | ||
SNOWFLAKE_DATABASE: ${{ vars.SNOWFLAKE_DATABASE }} | ||
SNOWFLAKE_SCHEMA: "integration_tests_snowflake_${{ github.run_number }}" | ||
# bigquery | ||
BIGQUERY_PROJECT: ${{ vars.BIGQUERY_PROJECT }} | ||
BIGQUERY_SCHEMA: "integration_tests_bigquery_${{ github.run_number }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@emmyoop is my understanding these envvars (excluding *_SCHEMA
) need to be registered as variables in Github? If, so are they set at the repo-, environment-, or organization-level?
a25f8f1
to
e06d871
Compare
e06d871
to
495c454
Compare
Resolves #316
Description & motivation
This PR make a slight update to the current testing layout to allow dbt Labs to start testing this package as part of our own
release process.
This adds support for testing with snowflake, bigquery and redshift.
To add additional adapter testing support in the future, you will just need to modify
I've left your current testing as is to allow you to decide what to do with it.
Why Do We Need These Changes
As explained in #316, by setting up tox as a standard entry-point, the Core development team at dbt Labs can include this package's integration tests (along with other popular dbt packages) as part of our continuous development & delivery of dbt.
Checklist