Skip to content
This repository was archived by the owner on Dec 4, 2024. It is now read-only.

Commit d6ba440

Browse files
authored
Merge pull request #43 from dbt-labs/v1-basic-compat
Change CI python and venv name, set upper dbt version
2 parents 7760cfc + dd368c6 commit d6ba440

File tree

3 files changed

+43
-41
lines changed

3 files changed

+43
-41
lines changed

.circleci/config.yml

+40-40
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version: 2.1
44
jobs:
55
build:
66
docker:
7-
- image: circleci/python:3.6.13-stretch
7+
- image: cimg/python:3.9.9
88
- image: circleci/postgres:9.6.5-alpine-ram
99

1010
steps:
@@ -21,8 +21,8 @@ jobs:
2121
- run:
2222
name: "Setup dbt"
2323
command: |
24-
python3 -m venv venv
25-
. venv/bin/activate
24+
python3 -m venv dbt_venv
25+
. dbt_venv/bin/activate
2626
2727
pip install --upgrade pip setuptools
2828
pip install --pre dbt
@@ -39,70 +39,70 @@ jobs:
3939
POSTGRES_TEST_PORT: 5432
4040
POSTGRES_TEST_DBNAME: circle_test
4141
command: |
42-
. venv/bin/activate
42+
. dbt_venv/bin/activate
4343
cd integration_tests
44-
dbt --warn-error deps --target postgres
45-
dbt --warn-error run-operation drop_audit_schema --target postgres
46-
dbt --warn-error run --target postgres --full-refresh
47-
dbt --warn-error run --target postgres
44+
dbt deps --target postgres
45+
dbt run-operation drop_audit_schema --target postgres
46+
dbt run --target postgres --full-refresh
47+
dbt run --target postgres
4848
49-
dbt --warn-error run-operation drop_audit_schema --target postgres
50-
dbt --warn-error run-operation create_legacy_audit_table --target postgres
51-
dbt --warn-error run --target postgres --full-refresh
52-
dbt --warn-error run --target postgres
49+
dbt run-operation drop_audit_schema --target postgres
50+
dbt run-operation create_legacy_audit_table --target postgres
51+
dbt run --target postgres --full-refresh
52+
dbt run --target postgres
5353
5454
- run:
5555
name: "Run Tests - Redshift"
5656
command: |
57-
. venv/bin/activate
57+
. dbt_venv/bin/activate
5858
echo `pwd`
5959
cd integration_tests
60-
dbt --warn-error deps --target redshift
61-
dbt --warn-error run-operation drop_audit_schema --target redshift
62-
dbt --warn-error run --target redshift --full-refresh
63-
dbt --warn-error run --target redshift
60+
dbt deps --target redshift
61+
dbt run-operation drop_audit_schema --target redshift
62+
dbt run --target redshift --full-refresh
63+
dbt run --target redshift
6464
65-
dbt --warn-error run-operation drop_audit_schema --target redshift
66-
dbt --warn-error run-operation create_legacy_audit_table --target redshift
67-
dbt --warn-error run --target redshift --full-refresh
68-
dbt --warn-error run --target redshift
65+
dbt run-operation drop_audit_schema --target redshift
66+
dbt run-operation create_legacy_audit_table --target redshift
67+
dbt run --target redshift --full-refresh
68+
dbt run --target redshift
6969
7070
- run:
7171
name: "Run Tests - Snowflake"
7272
command: |
73-
. venv/bin/activate
73+
. dbt_venv/bin/activate
7474
echo `pwd`
7575
cd integration_tests
76-
dbt --warn-error deps --target snowflake
77-
dbt --warn-error run-operation drop_audit_schema --target snowflake
78-
dbt --warn-error run --target snowflake --full-refresh
79-
dbt --warn-error run --target snowflake
76+
dbt deps --target snowflake
77+
dbt run-operation drop_audit_schema --target snowflake
78+
dbt run --target snowflake --full-refresh
79+
dbt run --target snowflake
8080
81-
dbt --warn-error run-operation drop_audit_schema --target snowflake
82-
dbt --warn-error run-operation create_legacy_audit_table --target snowflake
83-
dbt --warn-error run --target snowflake --full-refresh
84-
dbt --warn-error run --target snowflake
81+
dbt run-operation drop_audit_schema --target snowflake
82+
dbt run-operation create_legacy_audit_table --target snowflake
83+
dbt run --target snowflake --full-refresh
84+
dbt run --target snowflake
8585
8686
- run:
8787
name: "Run Tests - BigQuery"
8888
environment:
8989
BIGQUERY_SERVICE_KEY_PATH: "/home/circleci/bigquery-service-key.json"
9090

9191
command: |
92-
. venv/bin/activate
92+
. dbt_venv/bin/activate
9393
echo `pwd`
9494
cd integration_tests
95-
dbt --warn-error deps --target bigquery
96-
dbt --warn-error run-operation drop_audit_schema --target bigquery
97-
dbt --warn-error run --target bigquery --full-refresh
98-
dbt --warn-error run --target bigquery
95+
dbt deps --target bigquery
96+
dbt run-operation drop_audit_schema --target bigquery
97+
dbt run --target bigquery --full-refresh
98+
dbt run --target bigquery
9999
100-
dbt --warn-error run-operation drop_audit_schema --target bigquery
101-
dbt --warn-error run-operation create_legacy_audit_table --target bigquery
102-
dbt --warn-error run --target bigquery --full-refresh
103-
dbt --warn-error run --target bigquery
100+
dbt run-operation drop_audit_schema --target bigquery
101+
dbt run-operation create_legacy_audit_table --target bigquery
102+
dbt run --target bigquery --full-refresh
103+
dbt run --target bigquery
104104
105105
- save_cache:
106106
key: deps1-{{ .Branch }}
107107
paths:
108-
- "venv"
108+
- "dbt_venv"

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# dbt-event-logging v0.5.1
2+
🚨 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.

dbt_project.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: 'logging'
22
version: '0.5.0'
33
config-version: 2
44

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

77
source-paths: ["models"]
88
analysis-paths: ["analysis"]

0 commit comments

Comments
 (0)