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:
Matt Romano 2023-07-27 12:39:38 -07:00 committed by GitHub
parent eafbc05e18
commit 09f7b92dd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 53 additions and 4 deletions

View File

@ -26,7 +26,7 @@ jobs:
run_dbt_jobs:
runs-on: ubuntu-latest
environment:
name: workflow_prod
name: workflow_test
steps:
- uses: actions/checkout@v3

View File

@ -26,7 +26,7 @@ jobs:
run_dbt_jobs:
runs-on: ubuntu-latest
environment:
name: workflow_prod
name: workflow_test
steps:
- uses: actions/checkout@v3

View File

@ -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
View 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

View File

@ -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