mirror of
https://github.com/FlipsideCrypto/ethereum-models.git
synced 2026-02-06 13:46:47 +00:00
An 3575/full-test-updates (#619)
* update block ref in traces test * create monthly test yml * test workflow set up * fix macro typos * monthly fix
This commit is contained in:
parent
eafbc05e18
commit
09f7b92dd9
2
.github/workflows/dbt_test_beacon.yml
vendored
2
.github/workflows/dbt_test_beacon.yml
vendored
@ -26,7 +26,7 @@ jobs:
|
||||
run_dbt_jobs:
|
||||
runs-on: ubuntu-latest
|
||||
environment:
|
||||
name: workflow_prod
|
||||
name: workflow_test
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
2
.github/workflows/dbt_test_daily.yml
vendored
2
.github/workflows/dbt_test_daily.yml
vendored
@ -26,7 +26,7 @@ jobs:
|
||||
run_dbt_jobs:
|
||||
runs-on: ubuntu-latest
|
||||
environment:
|
||||
name: workflow_prod
|
||||
name: workflow_test
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
2
.github/workflows/dbt_test_intraday.yml
vendored
2
.github/workflows/dbt_test_intraday.yml
vendored
@ -26,7 +26,7 @@ jobs:
|
||||
run_dbt_jobs:
|
||||
runs-on: ubuntu-latest
|
||||
environment:
|
||||
name: workflow_prod
|
||||
name: workflow_test
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
44
.github/workflows/dbt_test_monthly.yml
vendored
Normal file
44
.github/workflows/dbt_test_monthly.yml
vendored
Normal file
@ -0,0 +1,44 @@
|
||||
name: dbt_test_monthly
|
||||
run-name: dbt_test_monthly
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
# Runs “1st of month at 12AM” (see https://crontab.guru)
|
||||
- cron: '0 0 1 * *'
|
||||
|
||||
env:
|
||||
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_test
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: "3.7.x"
|
||||
|
||||
- name: install dependencies
|
||||
run: |
|
||||
pip3 install dbt-snowflake==${{ vars.DBT_VERSION }} cli_passthrough requests click
|
||||
dbt deps
|
||||
- name: Run DBT Jobs
|
||||
run: |
|
||||
dbt test --select tag:full_test
|
||||
@ -8,7 +8,12 @@
|
||||
FROM
|
||||
{{ ref('test_silver__transactions_full') }}
|
||||
WHERE
|
||||
block_number > 3805279
|
||||
block_number NOT IN (
|
||||
SELECT
|
||||
block_number
|
||||
FROM
|
||||
{{ ref('silver_observability__excluded_trace_blocks') }}
|
||||
)
|
||||
),
|
||||
model_name AS (
|
||||
SELECT
|
||||
|
||||
Loading…
Reference in New Issue
Block a user