From 7327dd6f1b779159cc8d8a21db234d6d8407c3c7 Mon Sep 17 00:00:00 2001 From: desmond-hui <97470747+desmond-hui@users.noreply.github.com> Date: Wed, 13 Mar 2024 07:49:38 -0700 Subject: [PATCH] add tests to tags and include/exclude using tag (#511) --- .github/workflows/dbt_test.yml | 2 +- .github/workflows/dbt_test_weekly.yml | 2 +- ...decoded_instructions_combined_error_threshold_7_days.sql | 6 ++++++ ..._instructions_combined_static_error_threshold_7_days.sql | 6 ++++++ 4 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dbt_test.yml b/.github/workflows/dbt_test.yml index 850c02ed..29ebbc0e 100644 --- a/.github/workflows/dbt_test.yml +++ b/.github/workflows/dbt_test.yml @@ -42,4 +42,4 @@ jobs: dbt deps - name: Run DBT Jobs run: | - dbt test -s "solana_models,./models" \ No newline at end of file + dbt test -s "solana_models,./models" --exclude tag:test_weekly \ No newline at end of file diff --git a/.github/workflows/dbt_test_weekly.yml b/.github/workflows/dbt_test_weekly.yml index 940c80c0..03e323df 100644 --- a/.github/workflows/dbt_test_weekly.yml +++ b/.github/workflows/dbt_test_weekly.yml @@ -42,4 +42,4 @@ jobs: dbt deps - name: Run DBT Jobs run: | - dbt test --select tests/test_silver__decoded_instructions_combined_error_threshold_7_days.sql tests/test_silver__decoded_instructions_combined_static_error_threshold_7_days.sql \ No newline at end of file + dbt test -s tag:test_weekly \ No newline at end of file diff --git a/tests/test_silver__decoded_instructions_combined_error_threshold_7_days.sql b/tests/test_silver__decoded_instructions_combined_error_threshold_7_days.sql index 31610481..c4d09695 100644 --- a/tests/test_silver__decoded_instructions_combined_error_threshold_7_days.sql +++ b/tests/test_silver__decoded_instructions_combined_error_threshold_7_days.sql @@ -1,3 +1,9 @@ +{{ + config( + tags=["test_weekly"] + ) +}} + WITH base AS ( SELECT program_id, diff --git a/tests/test_silver__decoded_instructions_combined_static_error_threshold_7_days.sql b/tests/test_silver__decoded_instructions_combined_static_error_threshold_7_days.sql index 09b1728a..0dab7386 100644 --- a/tests/test_silver__decoded_instructions_combined_static_error_threshold_7_days.sql +++ b/tests/test_silver__decoded_instructions_combined_static_error_threshold_7_days.sql @@ -1,3 +1,9 @@ +{{ + config( + tags=["test_weekly"] + ) +}} + WITH current_rates AS ( SELECT program_id,