Skip to content

Commit

Permalink
Support dbt 1.9 (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
yu-iskw authored Dec 17, 2024
1 parent 3958db9 commit d222cc8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
25 changes: 18 additions & 7 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,21 @@ on:

jobs:
bigquery:
# Add "id-token" with the intended permissions.
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
# Python 3.8
- python-version: "3.8"
pip-requirements: "requirements-1.6.txt"
- python-version: "3.8"
pip-requirements: "requirements-1.7.txt"
# Python 3.9
- python-version: "3.9"
pip-requirements: "requirements-1.6.txt"
- python-version: "3.9"
pip-requirements: "requirements-1.7.txt"
- python-version: "3.8"
- python-version: "3.9"
pip-requirements: "requirements-1.8.txt"
# Python 3.10
- python-version: "3.10"
Expand All @@ -34,27 +33,39 @@ jobs:
pip-requirements: "requirements-1.7.txt"
- python-version: "3.10"
pip-requirements: "requirements-1.8.txt"
- python-version: "3.10"
pip-requirements: "requirements-1.9.txt"
# Python 3.11
- python-version: "3.11"
pip-requirements: "requirements-1.6.txt"
- python-version: "3.11"
pip-requirements: "requirements-1.7.txt"
- python-version: "3.11"
pip-requirements: "requirements-1.8.txt"
- python-version: "3.11"
pip-requirements: "requirements-1.9.txt"
# Python 3.12
- python-version: "3.12"
pip-requirements: "requirements-1.8.txt"
- python-version: "3.12"
pip-requirements: "requirements-1.9.txt"
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: '**/${{ matrix.pip-requirements }}'
# dbt-bigquery 1.9 required the application default credentials
# SEE https://github.com/dbt-labs/dbt-bigquery/issues/1438
- uses: google-github-actions/auth@v2
with:
workload_identity_provider: projects/131500153501/locations/global/workloadIdentityPools/github-oidc-pool/providers/github-oidc-provider
service_account: dbt-data-privacy@ubie-oss-data-engineering.iam.gserviceaccount.com
- name: Install dbt
working-directory: "${{ github.workspace }}/integration_tests"
run: |
Expand Down
4 changes: 4 additions & 0 deletions integration_tests/requirements/requirements-1.9.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dbt-bigquery>=1.9,<1.10
dbt-core>=1.9,<1.10

pytz>=2015.7

0 comments on commit d222cc8

Please sign in to comment.