mirror of
https://github.com/FlipsideCrypto/livequery-models.git
synced 2026-02-06 10:56:46 +00:00
* - removed utils.register_secret - add hosted profile * - refactor project variables to use config object * - add \n * - uncommented code * - update return type * - reverted name truncation * - change GHA workflow environments to align with dbt profiles * - add hosted option to enviornment dropdown * - add integration test * Update dbt_project.yml Add INTERNAL_DEV role to stg profile * - fix grants - enforce dbt target
47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
name: test udfs
|
|
run-name: ${{ github.event.inputs.branch }}
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
environment:
|
|
type: choice
|
|
description: DBT Run Environment
|
|
required: true
|
|
options:
|
|
- dev
|
|
- prod
|
|
default: dev
|
|
warehouse:
|
|
type: choice
|
|
description: Snowflake warehouse
|
|
required: true
|
|
options:
|
|
- DBT
|
|
- DBT_CLOUD
|
|
default: DBT
|
|
schedule:
|
|
# Runs “Daily at midnight GMT” (see https://crontab.guru)
|
|
- cron: '0 0 * * *'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}
|
|
|
|
jobs:
|
|
scheduled:
|
|
uses: ./.github/workflows/dbt.yml
|
|
if: github.event_name == 'schedule' || github.event_name == 'push'
|
|
secrets: inherit
|
|
with:
|
|
warehouse: DBT_CLOUD
|
|
environment: prod
|
|
command: test --selector test_udfs --threads 24
|
|
|
|
dispatched:
|
|
uses: ./.github/workflows/dbt.yml
|
|
if: github.event_name == 'workflow_dispatch'
|
|
secrets: inherit
|
|
with:
|
|
warehouse: ${{ inputs.warehouse }}
|
|
environment: ${{ inputs.environment }}
|
|
command: test --selector test_udfs --threads 24 |