Skip to content

Commit

Permalink
Merge pull request #451 from basedosdados/elementary-disable
Browse files Browse the repository at this point in the history
[feat]: add options to disable elementary models
  • Loading branch information
arthurfg authored Feb 23, 2024
2 parents 4a1d816 + 218cb9f commit 8fa7035
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-dbt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: CI dbt
on:
pull_request:
paths: ['**.sql', '**.yaml']
paths: ['**.sql', '**.yaml', '**.yml']
jobs:
lint:
name: Lint dbt
Expand Down
11 changes: 8 additions & 3 deletions dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ config-version: 2
# This setting configures which "profile" dbt uses for this project.
profile: default

# Options to disable elementary models
vars:
disable_run_results: false
disable_tests_results: false
disable_dbt_artifacts_autoupload: false
disable_dbt_invocation_autoupload: false

# These configurations specify where dbt should look for different types of files.
# The `source-paths` config, for example, states that models in this project can be
# found in the "models/" directory. You probably won't need to change these!
Expand All @@ -22,9 +29,7 @@ target-path: target # directory which will store compiled SQL files
clean-targets: # directories to be removed by `dbt clean`
- target
- dbt_modules
# Disable metadata models updates:
vars:
disable_dbt_artifacts_autoupload: true

# Grant acess
# bq data control: https://cloud.google.com/bigquery/docs/reference/standard-sql/data-control-language
# dbt grant statements use https://discourse.getdbt.com/t/the-exact-grant-statements-we-use-in-a-dbt-project/430
Expand Down

0 comments on commit 8fa7035

Please sign in to comment.