Skip to content

Commit

Permalink
Better CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ravenac95 committed Dec 28, 2024
1 parent ac83f75 commit 87fb560
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci-default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,8 @@ jobs:
- name: Test (Python)
run: |
poetry run pytest

- name: Run the sample dagster project
run: |
poetry run dagster job execute -f sample/dagster_project/definitions.py -j all_assets_job
4 changes: 4 additions & 0 deletions sample/dagster_project/definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
asset,
AssetExecutionContext,
Definitions,
define_asset_job,
)
from dagster_duckdb_polars import DuckDBPolarsIOManager
import polars as pl
Expand Down Expand Up @@ -55,6 +56,8 @@ def sqlmesh_project(context: AssetExecutionContext, sqlmesh: SQLMeshResource):
yield from sqlmesh.run(context)


all_assets_job = define_asset_job(name="all_assets_job")

defs = Definitions(
assets=[sqlmesh_project, test_source, reset_asset],
resources={
Expand All @@ -64,4 +67,5 @@ def sqlmesh_project(context: AssetExecutionContext, sqlmesh: SQLMeshResource):
schema="sources",
),
},
jobs=[all_assets_job],
)

0 comments on commit 87fb560

Please sign in to comment.