feat: expand testing

This commit is contained in:
Stijnvandenbroek
2026-03-04 22:18:30 +00:00
parent 0d2706a93e
commit 0b9b408714
22 changed files with 1266 additions and 54 deletions

View File

@@ -0,0 +1,25 @@
"""dbt source freshness op."""
from dagster import Config, OpExecutionContext, op
from dagster_dbt import DbtCliResource
class SourceFreshnessConfig(Config):
"""Config for the source freshness op."""
source_name: str
@op
def check_source_freshness(
context: OpExecutionContext,
config: SourceFreshnessConfig,
dbt: DbtCliResource,
) -> None:
"""Run dbt source freshness for the configured source."""
list(
dbt.cli(
["source", "freshness", "--select", f"source:{config.source_name}"],
context=context,
).stream()
)