Skip to content

Commit

Permalink
Support dbt 1.8 (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
yu-iskw authored Nov 27, 2024
1 parent 0b70be9 commit d86787c
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 30 deletions.
55 changes: 32 additions & 23 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,49 +18,55 @@ jobs:
fail-fast: false
matrix:
include:
- pip-requirements: "requirements-1.0.txt"
- pip-requirements: requirements-1.0.txt
python-version: "3.9"
- pip-requirements: "requirements-1.1.txt"
- pip-requirements: requirements-1.1.txt
python-version: "3.9"
- pip-requirements: "requirements-1.2.txt"
- pip-requirements: requirements-1.2.txt
python-version: "3.9"
- pip-requirements: "requirements-1.2.txt"
- pip-requirements: requirements-1.2.txt
python-version: "3.10"
- pip-requirements: "requirements-1.3.txt"
- pip-requirements: requirements-1.3.txt
python-version: "3.9"
- pip-requirements: "requirements-1.3.txt"
- pip-requirements: requirements-1.3.txt
python-version: "3.10"
- pip-requirements: "requirements-1.4.txt"
- pip-requirements: requirements-1.4.txt
python-version: "3.9"
- pip-requirements: "requirements-1.4.txt"
- pip-requirements: requirements-1.4.txt
python-version: "3.10"
- pip-requirements: "requirements-1.4.txt"
- pip-requirements: requirements-1.4.txt
python-version: "3.11"
- pip-requirements: "requirements-1.5.txt"
- pip-requirements: requirements-1.5.txt
python-version: "3.9"
- pip-requirements: "requirements-1.5.txt"
- pip-requirements: requirements-1.5.txt
python-version: "3.10"
- pip-requirements: "requirements-1.5.txt"
- pip-requirements: requirements-1.5.txt
python-version: "3.11"
- pip-requirements: "requirements-1.6.txt"
- pip-requirements: requirements-1.6.txt
python-version: "3.9"
- pip-requirements: "requirements-1.6.txt"
- pip-requirements: requirements-1.6.txt
python-version: "3.10"
- pip-requirements: "requirements-1.6.txt"
- pip-requirements: requirements-1.6.txt
python-version: "3.11"
- pip-requirements: "requirements-1.7.txt"
- pip-requirements: requirements-1.7.txt
python-version: "3.9"
- pip-requirements: "requirements-1.7.txt"
- pip-requirements: requirements-1.7.txt
python-version: "3.10"
- pip-requirements: "requirements-1.7.txt"
- pip-requirements: requirements-1.7.txt
python-version: "3.11"
- pip-requirements: requirements-1.8.txt
python-version: "3.9"
- pip-requirements: requirements-1.8.txt
python-version: "3.10"
- pip-requirements: requirements-1.8.txt
python-version: "3.11"
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-python@v4
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install pip
Expand All @@ -70,20 +76,23 @@ jobs:
working-directory: "${{ github.workspace }}/integration_tests"
run: |
# Use 'legacy-resolver' to speed up
pip install -r "requirements/${{ matrix.pip-requirements }}" --use-deprecated "legacy-resolver"
pip install -r "requirements/${{ matrix.pip-requirements }}"
- name: Run unit tests
id: run-unit-tests
working-directory: "${{ github.workspace }}/integration_tests"
run: |
bash run_unit_tests.sh
# Save artifacts for debug
- name: Save logs and artifacts if failed
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: save-logs-and-target-${{ matrix.python-version }}-${{ matrix.pip-requirements }}
retention-days: 3
path: |
integration_tests/logs
integration_tests/target
- id: exit
run: exit ${{ steps.apply.outputs.exitcode }}
if: ${{ steps.run-unit-tests.outcome == 'failure' }}
run: |
exit 1
2 changes: 0 additions & 2 deletions integration_tests/requirements/requirements-1.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,3 @@ pytz
# > for soft_unicode since it was deprecated and says we should be using soft_str
# > instead (https://markupsafe.palletsprojects.com/en/2.1.x/changes/).
MarkupSafe==2.0.1
werkzeug>=3.0.1 # not directly required, pinned by Snyk to avoid a vulnerability
urllib3>=2.2.2 # not directly required, pinned by Snyk to avoid a vulnerability
1 change: 0 additions & 1 deletion integration_tests/requirements/requirements-1.1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ pytz
# > for soft_unicode since it was deprecated and says we should be using soft_str
# > instead (https://markupsafe.palletsprojects.com/en/2.1.x/changes/).
MarkupSafe==2.0.1
jinja2>=3.1.4 # not directly required, pinned by Snyk to avoid a vulnerability
2 changes: 0 additions & 2 deletions integration_tests/requirements/requirements-1.2.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@ dbt-bigquery==1.2.0
dbt-core==1.2.0

pytz
requests>=2.32.2 # not directly required, pinned by Snyk to avoid a vulnerability
urllib3>=2.2.2 # not directly required, pinned by Snyk to avoid a vulnerability
1 change: 0 additions & 1 deletion integration_tests/requirements/requirements-1.3.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ dbt-bigquery==1.3.0
dbt-core==1.3.0

pytz
jinja2>=3.1.4 # not directly required, pinned by Snyk to avoid a vulnerability
1 change: 0 additions & 1 deletion integration_tests/requirements/requirements-1.4.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ dbt-bigquery==1.4.0
dbt-core==1.4.0

pytz
setuptools>=70.0.0 # not directly required, pinned by Snyk to avoid a vulnerability
2 changes: 2 additions & 0 deletions integration_tests/requirements/requirements-1.8.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dbt-bigquery>=1.8,<1.9
dbt-core>=1.8,<1.9

0 comments on commit d86787c

Please sign in to comment.