Skip to content

Commit 1c2ba5f

Browse files
committed
feat: widen dbt-core compatibility range
1 parent 5c252f3 commit 1c2ba5f

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/pr.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
concurrency:
99
group: 'pr-${{ github.event.pull_request.number }}'
1010
cancel-in-progress: true
11+
permissions:
12+
contents: read
1113
jobs:
1214
test-vscode:
1315
env:
@@ -66,3 +68,34 @@ jobs:
6668
name: playwright-report
6769
path: vscode/extension/playwright-report/
6870
retention-days: 30
71+
test-dbt-versions:
72+
runs-on: ubuntu-latest
73+
strategy:
74+
fail-fast: false
75+
matrix:
76+
dbt-version: ["1.3.0", "1.4.0", "1.5.0", "1.6.0", "1.7.0", "1.8.0", "1.9.0", "1.10.0"]
77+
steps:
78+
- uses: actions/checkout@v5
79+
- name: Set up Python
80+
uses: actions/setup-python@v5
81+
with:
82+
python-version: '3.10'
83+
- name: Install SQLMesh dev dependencies
84+
run: |
85+
python -m venv .venv
86+
source .venv/bin/activate
87+
make install-dev
88+
- name: Install dbt-core version
89+
run: |
90+
source .venv/bin/activate
91+
pip install "dbt-core~=${{ matrix.dbt-version }}"
92+
pip install pydantic>=2.0.0 --force-reinstall
93+
- name: Run dbt tests
94+
run: |
95+
source .venv/bin/activate
96+
make dbt-test
97+
- name: Test SQLMesh info in sushi_dbt
98+
working-directory: ./examples/sushi_dbt
99+
run: |
100+
source ../../.venv/bin/activate
101+
sqlmesh info --skip-connection

0 commit comments

Comments
 (0)