mirror of
https://github.com/FlipsideCrypto/flow-models.git
synced 2026-02-06 14:22:06 +00:00
* source, bronze, complete, rt views * complete testnet_ dependency * upd sources.yml * upd models and bronze * upd models.sql * upd model in bronze views * adding chainhead_testnet * add jobs * fix: hour * upd api integration * various fixes. useast2, gha workflows, bad refs, etc * update udtf_get_base_table --------- Co-authored-by: WHYTEWYLL <juanmiblanco1@gmail.com>
47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
name: dbt_run_streamline_blocks_testnet
|
|
run-name: dbt_run_streamline_blocks_testnet
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
# 1x/hour schedule = At hour 8, 21, 36, 51 every day (see https://crontab.guru)
|
|
- cron: "7,27,47 10,20 * * *"
|
|
|
|
env:
|
|
USE_VARS: "${{ vars.USE_VARS }}"
|
|
DBT_PROFILES_DIR: "${{ vars.DBT_PROFILES_DIR }}"
|
|
ACCOUNT: "${{ vars.ACCOUNT }}"
|
|
ROLE: "${{ vars.ROLE }}"
|
|
USER: "${{ vars.USER }}"
|
|
PASSWORD: "${{ secrets.PASSWORD }}"
|
|
REGION: "${{ vars.REGION }}"
|
|
DATABASE: "${{ vars.DATABASE }}"
|
|
WAREHOUSE: "${{ vars.WAREHOUSE }}"
|
|
SCHEMA: "${{ vars.SCHEMA }}"
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}
|
|
|
|
jobs:
|
|
run_dbt_jobs:
|
|
runs-on: ubuntu-latest
|
|
environment:
|
|
name: workflow_prod
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-python@v4
|
|
with:
|
|
python-version: "3.10"
|
|
cache: "pip"
|
|
|
|
- name: install dependencies
|
|
run: |
|
|
pip install -r requirements.txt
|
|
dbt deps
|
|
|
|
- name: Run DBT Realtime
|
|
run: |
|
|
dbt run -s 2+streamline__get_testnet_blocks_realtime --vars '{"STREAMLINE_INVOKE_STREAMS": True}'
|