[br_ms_sinan] model dbt and tests in table microdados_dengue #84
Workflow file for this run
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: Deploy Elementary Report | |
on: | |
push: | |
branches: [main, master] | |
pull_request: | |
branches: [main, master] | |
schedule: | |
- cron: 00 22 * * 1-5 | |
workflow_dispatch: | |
jobs: | |
elementary: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout dbt project | |
uses: actions/checkout@v3 | |
- name: Run Elementary | |
uses: elementary-data/run-elementary-action@v1.12 | |
with: | |
warehouse-type: bigquery | |
adapter-version: 1.5.9 | |
profiles-yml: ${{ secrets.ELEMENTARY_PROFILES_YML }} | |
edr-command: edr report --file-path "report.html" --days-back 90 && edr send-report --google-service-account-path | |
"/tmp/gcs_keyfile.json" --gcs-bucket-name "basedosdados" --update-bucket-website "true" --days-back 90 | |
bigquery-keyfile: ${{ secrets.BIGQUERY_KEYFILE }} | |
gcs-keyfile: ${{ secrets.GCS_KEYFILE }} | |
- name: Upload report | |
uses: actions/upload-artifact@v3 | |
with: | |
name: report.html | |
path: report.html | |
- name: Upload log | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: edr.log | |
path: edr.log |