-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to dbt-core 1.7 compatibility (#119)
* Update packages.yml * fix gh actions
- Loading branch information
1 parent
df5064c
commit 2450b5e
Showing
9 changed files
with
42 additions
and
34 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -8,9 +8,17 @@ env: | |
RE_DATA_TESTING_USER: ${{ secrets.RE_DATA_TESTING_USER }} | ||
RE_DATA_TESTING_PASSWORD: ${{ secrets.RE_DATA_TESTING_PASSWORD }} | ||
REDSHIFT_RE_DATA_TESTING_HOST: ${{ secrets.REDSHIFT_RE_DATA_TESTING_HOST }} | ||
BIGQUERY_TESTING_TYPE: ${{ secrets.BIGQUERY_TESTING_TYPE }} | ||
BIGQUERY_TESTING_PROJECT_ID: ${{ secrets.BIGQUERY_TESTING_PROJECT_ID }} | ||
BIGQUERY_TESTING_SERVICE_ACCOUNT_BASE64: ${{ secrets.BIGQUERY_TESTING_SERVICE_ACCOUNT_BASE64 }} | ||
BIGQUERY_TESTING_SERVICE_ACCOUNT_PATH: ${{ github.workspace }}/bigquery-testing-service-account.json | ||
BIGQUERY_TESTING_PRIVATE_KEY_ID: ${{ secrets.BIGQUERY_TESTING_PRIVATE_KEY_ID }} | ||
BIGQUERY_TESTING_PRIVATE_KEY: ${{ secrets.BIGQUERY_TESTING_PRIVATE_KEY }} | ||
BIGQUERY_TESTING_CLIENT_EMAIL: ${{ secrets.BIGQUERY_TESTING_CLIENT_EMAIL }} | ||
BIGQUERY_TESTING_CLIENT_ID: ${{ secrets.BIGQUERY_TESTING_CLIENT_ID }} | ||
BIGQUERY_TESTING_AUTH_URI: ${{ secrets.BIGQUERY_TESTING_AUTH_URI }} | ||
BIGQUERY_TESTING_TOKEN_URI: ${{ secrets.BIGQUERY_TESTING_TOKEN_URI }} | ||
BIGQUERY_TESTING_AUTH_PROVIDER_X509_CERT_URL: ${{ secrets.BIGQUERY_TESTING_AUTH_PROVIDER_X509_CERT_URL }} | ||
BIGQUERY_TESTING_CLIENT_X509_CERT_URL: ${{ secrets.BIGQUERY_TESTING_CLIENT_X509_CERT_URL }} | ||
DBT_VERSION: 1.7 | ||
|
||
jobs: | ||
test-other-dbs: | ||
|
@@ -24,9 +32,9 @@ jobs: | |
- name: Check out | ||
uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-python@v1 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.7.x" | ||
python-version: "3.8.x" | ||
|
||
- name: Inject slug/short variables | ||
uses: rlespinasse/[email protected] | ||
|
@@ -40,16 +48,11 @@ jobs: | |
run: | | ||
echo $DQ_SCHEMA | ||
- name: Decode service account for BigQuery | ||
if: matrix.database == 'bigquery' | ||
run: 'echo $BIGQUERY_TESTING_SERVICE_ACCOUNT_BASE64 | base64 --decode > $BIGQUERY_TESTING_SERVICE_ACCOUNT_PATH' | ||
shell: bash | ||
|
||
- name: Install dependencies | ||
working-directory: ./integration_tests | ||
run: | | ||
pip install -r requirements.txt | ||
pip install dbt-${{ matrix.database }}==1.4.0 | ||
pip install dbt-${{ matrix.database }}==$DBT_VERSION | ||
dbt deps | ||
- name: Drop schemas | ||
|
@@ -89,14 +92,15 @@ jobs: | |
- name: Check out | ||
uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-python@v1 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.7.x" | ||
python-version: "3.8.x" | ||
|
||
- name: Install dependencies | ||
working-directory: ./integration_tests | ||
run: | | ||
pip install -r requirements.txt | ||
pip install dbt-postgres==$DBT_VERSION | ||
dbt deps | ||
- name: Test DB | ||
|
@@ -114,9 +118,9 @@ jobs: | |
- name: Check out | ||
uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-python@v1 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.7.x" | ||
python-version: "3.8.x" | ||
|
||
- name: Inject slug/short variables | ||
uses: rlespinasse/[email protected] | ||
|
@@ -130,15 +134,10 @@ jobs: | |
run: | | ||
echo $DQ_SCHEMA | ||
- name: Decode service account for BigQuery | ||
if: matrix.database == 'bigquery' | ||
run: 'echo $BIGQUERY_TESTING_SERVICE_ACCOUNT_BASE64 | base64 --decode > $BIGQUERY_TESTING_SERVICE_ACCOUNT_PATH' | ||
shell: bash | ||
|
||
- name: Install dependencies and drop branch schema | ||
working-directory: ./integration_tests | ||
run: | | ||
pip install -r requirements.txt | ||
pip install dbt-${{ matrix.database }}==1.5.0 | ||
pip install dbt-${{ matrix.database }}==$DBT_VERSION | ||
dbt deps | ||
dbt run-operation drop_all_schemas --args "{ schema_name: ${{ env.DQ_SCHEMA }} }" --profile re_data_${{ matrix.database }} --vars "{ source_schema: ${{ env.DQ_SCHEMA }} }" |
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 |
---|---|---|
|
@@ -9,3 +9,4 @@ logs/* | |
dbt_modules/* | ||
dbt_packages/* | ||
target/* | ||
.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 |
---|---|---|
@@ -1,4 +1,2 @@ | ||
pytest==6.2.5 | ||
pyyaml==6.0 | ||
dbt-core==1.4.0 | ||
dbt-postgres==1.4.0 |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
packages: | ||
- package: dbt-labs/dbt_utils | ||
version: [">=1.0.0", "<1.1.0"] | ||
version: [">=1.0.0", "<1.2.0"] |
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