weekly_dbt_v1.9.4_snowflake_dev_build_full_refresh #5
This file contains hidden or 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
| name: weekly_dbt_v1.9.4_snowflake_dev_build_full_refresh | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| # This job will run at midnight on Fridays | |
| - cron: '0 0 * * SAT' | |
| env: | |
| PYTHON_VERSION: '3.11' | |
| ####### Secrets ####### | |
| DBT_SNOWFLAKE_DEV_ACCOUNT: ${{ secrets.DBT_SNOWFLAKE_DEV_ACCOUNT }} | |
| DBT_SNOWFLAKE_DEV_DATABASE: ${{ secrets.DBT_SNOWFLAKE_DEV_DATABASE }} | |
| DBT_SNOWFLAKE_DEV_CI_PASSWORD: ${{ secrets.DBT_SNOWFLAKE_DEV_CI_PASSWORD }} | |
| DBT_SNOWFLAKE_DEV_CI_ROLE: ${{ secrets.DBT_SNOWFLAKE_DEV_CI_ROLE }} | |
| DBT_SNOWFLAKE_DEV_CI_SCHEMA: ${{ secrets.DBT_SNOWFLAKE_DEV_CI_SCHEMA }} | |
| DBT_SNOWFLAKE_DEV_CI_USER: ${{ secrets.DBT_SNOWFLAKE_DEV_CI_USER }} | |
| DBT_SNOWFLAKE_DEV_CI_WAREHOUSE: ${{ secrets.DBT_SNOWFLAKE_DEV_CI_WAREHOUSE }} | |
| jobs: | |
| action: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ env.PYTHON_VERSION }} | |
| - name: Install dbt-core and Snowflake adapter | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install dbt-core==1.9.4 dbt-snowflake | |
| - name: dbt-deps | |
| run: dbt deps --profiles-dir ./integration_tests/profiles/snowflake | |
| - name: dbt-debug | |
| run: dbt debug --profiles-dir ./integration_tests/profiles/snowflake | |
| - name: dbt-build | |
| run: dbt build --full-refresh --profiles-dir ./integration_tests/profiles/snowflake | |
| - name: Get the result | |
| if: ${{ always() }} | |
| run: echo "${{ steps.dbt-build.outputs.result }}" | |
| shell: bash |