-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Inital config for dbt_project_evaluator package on github actions
- Loading branch information
1 parent
1772fad
commit 83d4ed5
Showing
4 changed files
with
100 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: dbt project evaluator CI | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
env: | ||
DBT_DEFAULT_PROFILE_TARGET: stellar_dbt_public | ||
DBT_PROFILES_DIR: ${{ github.workspace }} | ||
DBT_TARGET: test | ||
DBT_DATASET: test_crypto_stellar | ||
DBT_PROJECT: test-hubble-319619 | ||
DBT_MAX_BYTES_BILLED: 1000000000000 | ||
DBT_JOB_TIMEOUT: 300 | ||
DBT_THREADS: 1 | ||
DBT_JOB_RETRIES: 1 | ||
|
||
jobs: | ||
dbt-project-evaluator: | ||
runs-on: ubuntu-latest | ||
if: >- | ||
github.event.pull_request.merged == false && | ||
github.event.pull_request.state == 'open' | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up python | ||
shell: bash | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
- name: Authenticate to Test-Hubble | ||
uses: "google-github-actions/auth@v2" | ||
with: | ||
project_id: test-hubble-319619 | ||
credentials_json: "${{ secrets.CREDS_TEST_HUBBLE }}" | ||
|
||
- name: Set up Cloud SDK | ||
uses: "google-github-actions/setup-gcloud@v2" | ||
|
||
- name: Run dbt debug | ||
run: | | ||
dbt debug | ||
- name: Run dbt deps | ||
run: | | ||
dbt deps | ||
- name: Run dbt build project evaluator | ||
run: | | ||
dbt build --select package:dbt_project_evaluator dbt_project_evaluator_exceptions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
packages: | ||
- package: dbt-labs/dbt_utils | ||
version: 1.1.1 | ||
|
||
- package: elementary-data/elementary | ||
version: [">=0.7.3", "<1.0.0"] | ||
|
||
## Docs: https://docs.elementary-data.com | ||
- package: yu-iskw/dbt_airflow_macros | ||
version: 0.3.0 | ||
|
||
## https://dbt-labs.github.io/dbt-project-evaluator/latest/ | ||
- package: dbt-labs/dbt_project_evaluator | ||
version: 0.6.2 |
3 changes: 3 additions & 0 deletions
3
seeds/dbt_project_evaluator_config/dbt_project_evaluator_exceptions.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
fct_name,column_name,id_to_exclude,comment | ||
fct_undocumented_models,model_type,staging,removing necessity to document staging models | ||
fct_undocumented_models,model_type,intermediate,removing necessity to document intermediate models |