Skip to content

Commit

Permalink
Freeze dbt version for integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
agnessnowplow committed Oct 4, 2024
1 parent e20adf2 commit dfea5ec
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/pr_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,18 @@ jobs:
strategy:
fail-fast: false
matrix:
dbt_version: ["1.8.*"]
warehouse: ["postgres", "bigquery", "snowflake", "databricks", "redshift"] # TODO: Add RS self-hosted runner
include:
- dbt_version: "1.8.2" # Explicit version for Postgres
warehouse: "postgres"
- dbt_version: "1.8.1" # Explicit version for Redshift
warehouse: "redshift"
- dbt_version: "1.8.*" # Wildcard version for BigQuery
warehouse: "bigquery"
- dbt_version: "1.8.*" # Wildcard version for Snowflake
warehouse: "snowflake"
- dbt_version: "1.8.*" # Wildcard version for Databricks
warehouse: "databricks"

services:
postgres:
image: postgres:latest
Expand Down Expand Up @@ -112,15 +122,14 @@ jobs:
- name: Install dependencies
run: |
pip install wheel setuptools
pip install -Iv pip install dbt-core>=1.8.0,<1.9.0
pip install -Iv dbt-${{ matrix.warehouse } --no-deps
pip install -Iv dbt-${{ matrix.warehouse }}
dbt deps
if: ${{matrix.warehouse != 'spark'}}

- name: Install spark dependencies
run: |
pip install --upgrade pip wheel setuptools
pip install -Iv "dbt-${{ matrix.warehouse }}[ODBC]"==${{ matrix.dbt_version }} --upgrade
pip install -Iv "dbt-${{ matrix.warehouse }}[ODBC]"==${{ matrix.dbt_version }}
dbt deps
if: ${{matrix.warehouse == 'spark'}}

Expand Down

0 comments on commit dfea5ec

Please sign in to comment.