From 14e8fc3094ae4ecdc1101e431bf5a8a1601596ff Mon Sep 17 00:00:00 2001 From: Austin Date: Wed, 12 Feb 2025 12:16:01 -0500 Subject: [PATCH] scores --- .../workflows/dbt_run_scheduled_scores.yml | 46 +++++++++++++++++++ data/github_actions__workflows.csv | 3 +- dbt_project.yml | 2 +- 3 files changed, 49 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/dbt_run_scheduled_scores.yml diff --git a/.github/workflows/dbt_run_scheduled_scores.yml b/.github/workflows/dbt_run_scheduled_scores.yml new file mode 100644 index 0000000..cef4664 --- /dev/null +++ b/.github/workflows/dbt_run_scheduled_scores.yml @@ -0,0 +1,46 @@ + +name: dbt_run_scheduled_scores +run-name: dbt_run_scheduled_scores + +on: + workflow_dispatch: + branches: + - "main" + +env: + DBT_PROFILES_DIR: ./ + + ACCOUNT: "${{ vars.ACCOUNT }}" + ROLE: "${{ vars.ROLE }}" + USER: "${{ vars.USER }}" + PASSWORD: "${{ secrets.PASSWORD }}" + REGION: "${{ vars.REGION }}" + DATABASE: "${{ vars.DATABASE }}" + WAREHOUSE: "${{ vars.WAREHOUSE }}" + SCHEMA: "${{ vars.SCHEMA }}" + +concurrency: + group: ${{ github.workflow }} + +jobs: + run_dbt_jobs: + runs-on: ubuntu-latest + environment: + name: workflow_prod + + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-python@v4 + with: + python-version: "3.10" + cache: "pip" + + - name: install dependencies + run: | + pip install -r requirements.txt + dbt deps + + - name: Update scores + run: | + dbt run -m "fsc_evm,tag:scores" diff --git a/data/github_actions__workflows.csv b/data/github_actions__workflows.csv index ab1bd3d..dff8f36 100644 --- a/data/github_actions__workflows.csv +++ b/data/github_actions__workflows.csv @@ -8,4 +8,5 @@ dbt_test_daily,"23 8 * * *" dbt_test_monthly,"6 7 28 * *" dbt_run_scheduled_abis,"32 23 * * *" dbt_run_streamline_decoded_logs_history,"6 22 * * 6" -dbt_run_full_observability,"0 20 1 * *" \ No newline at end of file +dbt_run_full_observability,"0 20 1 * *" +dbt_run_scheduled_scores,"15 5 * * *" \ No newline at end of file diff --git a/dbt_project.yml b/dbt_project.yml index 2b1db68..e5d8544 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -96,7 +96,7 @@ models: vertex: +enabled: true scores_package: - +enabled: false + +enabled: true vars: "dbt_date:time_zone": GMT