Skip to content

Commit

Permalink
add explicit req files back
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed Dec 9, 2024
1 parent 7d0cbe3 commit 8812130
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion dagger/run_dbt_spark_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ async def test_spark(test_args):
pip_cache = client.cache_volume("pip")

# setup directories as we don't want to copy the whole repo into the container
client.host().directory(
req_files = client.host().directory(
"./", include=["*.env", "hatch.toml", "pyproject.toml", "./dbt", "./tests"]
)
scripts = client.host().directory("./dagger/scripts")
Expand All @@ -108,6 +108,9 @@ async def test_spark(test_args):
# install OS deps first so any local changes don't invalidate the cache
.with_directory("/scripts", scripts)
.with_exec(["./scripts/install_os_reqs.sh"])
# install dbt-spark + python deps
.with_directory("/src", req_files)
.with_workdir("/src")
)

if test_profile == "apache_spark":
Expand Down
1 change: 0 additions & 1 deletion hatch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ dependencies = [
"dbt-common @ git+https://github.com/dbt-labs/dbt-common.git",
"dbt-tests-adapter @ git+https://github.com/dbt-labs/dbt-adapters.git#subdirectory=dbt-tests-adapter",
"dbt-core @ git+https://github.com/dbt-labs/dbt-core.git#subdirectory=core",
"anyio",
"beartype<0.18.0",
"dagger-io~=0.9.7",
"ddtrace==2.3.0",
Expand Down

0 comments on commit 8812130

Please sign in to comment.