Skip to content

Commit

Permalink
Merge branch 'main' into ga-ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
tatiana authored Feb 27, 2025
2 parents 52e2427 + 8630cae commit d5c9061
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
3 changes: 1 addition & 2 deletions dev/dags/example_cosmos_dbt_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
from datetime import datetime
from pathlib import Path

from cosmos import DbtDag, ProfileConfig, ProjectConfig, RenderConfig
from cosmos.constants import TestBehavior
from cosmos import DbtDag, ProfileConfig, ProjectConfig, RenderConfig, TestBehavior
from cosmos.profiles import PostgresUserPasswordProfileMapping

DEFAULT_DBT_ROOT_PATH = Path(__file__).parent / "dbt"
Expand Down
1 change: 0 additions & 1 deletion docs/getting_started/mwaa.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ In your ``my_cosmos_dag.py`` file, import the ``DbtDag`` class from Cosmos and c
from datetime import datetime
from cosmos import DbtDag, ProjectConfig, ProfileConfig, ExecutionConfig
from cosmos.profiles import PostgresUserPasswordProfileMapping
from cosmos.constants import ExecutionMode
profile_config = ProfileConfig(
profile_name="default",
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ dependencies = [
"types-python-dateutil",
"Werkzeug<3.0.0",
"dbt-core",
"methodtools",
]
pre-install-commands = ["sh scripts/test/pre-install-airflow.sh {matrix:airflow} {matrix:python}"]

Expand Down
3 changes: 3 additions & 0 deletions tests/test_example_dags.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ def get_dag_bag() -> DagBag:
if DBT_VERSION < Version("1.5.0"):
file.writelines(["example_source_rendering.py\n"])

# TODO: Fix https://github.com/astronomer/astronomer-cosmos/issues/1568
file.writelines("example_cosmos_dbt_build.py\n")

print(".airflowignore contents: ")
print(AIRFLOW_IGNORE_FILE.read_text())
db = DagBag(EXAMPLE_DAGS_DIR, include_examples=False)
Expand Down

0 comments on commit d5c9061

Please sign in to comment.