updates to ReadMe to include Azure DevOps and dbt Cloud #127
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: test | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
env: | |
DBT_PROFILES_DIR: ci | |
SNOWFLAKE_PRIVATE_KEY: ${{ SECRETS.SNOWFLAKE_PRIVATE_KEY }} | |
SNOWFLAKE_USER: ${{ SECRETS.SNOWFLAKE_USER }} | |
SNOWFLAKE_ACCOUNT: ${{ SECRETS.SNOWFLAKE_ACCOUNT }} | |
defaults: | |
run: | |
shell: bash -l {0} | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
path: caldata-infrastructure-template | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- id: auth | |
name: Authenticate to Google Cloud | |
uses: google-github-actions/auth@v1 | |
with: | |
# The credentials here can read metadata only, which makes them | |
# good enough for `dbt compile`. It really shouldn't be necessary | |
# to have a live connection to compile the sample model, but unfortunately | |
# dbt seems to require it. | |
credentials_json: ${{ secrets.GOOGLE_CREDENTIALS }} | |
- name: Setup git | |
run: | | |
git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
git config --global user.name "github-actions[bot]" | |
- name: Install dependencies | |
run: | | |
pip install copier poetry | |
poetry config virtualenvs.in-project true | |
- name: Test template | |
run: ./caldata-infrastructure-template/ci/test.sh |