Skip to content

Commit

Permalink
Merge pull request #109 from dbt-labs/basic-v1-compat
Browse files Browse the repository at this point in the history
bump CI python version, drop --warn-errors, add upper bound to dbt ve…
  • Loading branch information
joellabes authored Dec 3, 2021
2 parents b63a562 + a3cb818 commit 3a48d23
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 29 deletions.
56 changes: 28 additions & 28 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: 2
jobs:
build:
docker:
- image: circleci/python:3.6.3-stretch
- image: cimg/python:3.9.9
- image: circleci/postgres:9.6.5-alpine-ram

steps:
Expand All @@ -21,8 +21,8 @@ jobs:
- run:
name: "Setup dbt"
command: |
python3 -m venv venv
. venv/bin/activate
python3 -m venv dbt_venv
. dbt_venv/bin/activate
pip install --upgrade pip setuptools
pip install --pre dbt
mkdir -p ~/.dbt
Expand All @@ -37,54 +37,54 @@ jobs:
POSTGRES_TEST_PORT: 5432
POSTGRES_TEST_DBNAME: circle_test
command: |
. venv/bin/activate
. dbt_venv/bin/activate
cd integration_tests
dbt --warn-error deps --target postgres
dbt --warn-error seed --target postgres --full-refresh
dbt --warn-error run --target postgres --full-refresh --vars 'update: false'
dbt --warn-error run --target postgres --vars 'update: true'
dbt --warn-error test --target postgres
dbt deps --target postgres
dbt seed --target postgres --full-refresh
dbt run --target postgres --full-refresh --vars 'update: false'
dbt run --target postgres --vars 'update: true'
dbt test --target postgres
- run:
name: "Run Tests - Redshift"
command: |
. venv/bin/activate
. dbt_venv/bin/activate
echo `pwd`
cd integration_tests
dbt --warn-error deps --target redshift
dbt --warn-error seed --target redshift --full-refresh
dbt --warn-error run --target redshift --full-refresh --vars 'update: false'
dbt --warn-error run --target redshift --vars 'update: true'
dbt --warn-error test --target redshift
dbt deps --target redshift
dbt seed --target redshift --full-refresh
dbt run --target redshift --full-refresh --vars 'update: false'
dbt run --target redshift --vars 'update: true'
dbt test --target redshift
- run:
name: "Run Tests - Snowflake"
command: |
. venv/bin/activate
. dbt_venv/bin/activate
echo `pwd`
cd integration_tests
dbt --warn-error deps --target snowflake
dbt --warn-error seed --target snowflake --full-refresh
dbt --warn-error run --target snowflake --full-refresh --vars 'update: false'
dbt --warn-error run --target snowflake --vars 'update: true'
dbt --warn-error test --target snowflake
dbt deps --target snowflake
dbt seed --target snowflake --full-refresh
dbt run --target snowflake --full-refresh --vars 'update: false'
dbt run --target snowflake --vars 'update: true'
dbt test --target snowflake
- run:
name: "Run Tests - BigQuery"
environment:
BIGQUERY_SERVICE_KEY_PATH: "/home/circleci/bigquery-service-key.json"

command: |
. venv/bin/activate
. dbt_venv/bin/activate
echo `pwd`
cd integration_tests
dbt --warn-error deps --target bigquery
dbt --warn-error seed --target bigquery --full-refresh
dbt --warn-error run --target bigquery --full-refresh --vars 'update: false'
dbt --warn-error run --target bigquery --vars 'update: true'
dbt --warn-error test --target bigquery
dbt deps --target bigquery
dbt seed --target bigquery --full-refresh
dbt run --target bigquery --full-refresh --vars 'update: false'
dbt run --target bigquery --vars 'update: true'
dbt test --target bigquery
- save_cache:
key: deps1-{{ .Branch }}
paths:
- "venv"
- "dbt_venv"
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# snowplow v0.13.3
🚨 This is a compatibility release in preparation for `dbt-core` v1.0.0 (🎉). Projects using this version with `dbt-core` v1.0.x can expect to see a deprecation warning. This will be resolved in the next minor release.
2 changes: 1 addition & 1 deletion dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ analysis-paths: ["analysis"]
data-paths: ["data"]
macro-paths: ["macros"]

require-dbt-version: ">=0.20.0"
require-dbt-version: [">=0.20.0", "<1.1.0"]

vars:
#'snowplow:events': TABLE OR {{ REF() }}
Expand Down

0 comments on commit 3a48d23

Please sign in to comment.