Update fct__monthly__financials.sql #284
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
name: dbt PR job | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- ready_for_review | |
branches: | |
- master | |
# push: | |
# branches-ignore: | |
# - master | |
# - master-databricks | |
jobs: | |
run: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: '3.8' | |
- name: install requirements | |
run: | | |
echo "setuptools<72" > constraints.txt | |
export PIP_CONSTRAINT=constraints.txt | |
pip install --upgrade pip | |
pip install -q -r requirements.txt | |
- name: install datafold-sdk | |
run: pip install -q datafold-sdk | |
- name: dbt deps | |
run: dbt deps | |
- name: Find Current Pull Request | |
uses: jwalton/[email protected] | |
id: findPR | |
- name: dbt build | |
run: dbt build --full-refresh --profiles-dir ./ | |
env: | |
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }} | |
SNOWFLAKE_USER: ${{ secrets.SNOWFLAKE_USER }} | |
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }} | |
SNOWFLAKE_ROLE: ${{ secrets.SNOWFLAKE_ROLE }} | |
# SNOWFLAKE_SCHEMA: "${{ 'PR' }}" | |
SNOWFLAKE_SCHEMA: "${{ format('{0}_{1}', 'PR_NUM', steps.findPr.outputs.pr) }}" | |
- name: submit artifacts to datafold | |
run: | | |
set -ex | |
datafold dbt upload --ci-config-id 146 --run-type ${DATAFOLD_RUN_TYPE} --commit-sha ${GIT_SHA} | |
env: | |
DATAFOLD_API_KEY: ${{ secrets.DATAFOLD_APIKEY }} | |
DATAFOLD_RUN_TYPE: "${{ 'pull_request' }}" | |
GIT_SHA: "${{ github.event.pull_request.head.sha }}" |