Skip to content

Commit

Permalink
allow for test.env to not exist, needed for ci
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed Dec 19, 2024
1 parent dc41792 commit 7a93bfc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion dagger/run_dbt_spark_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,16 @@ async def test_spark(test_args):
.with_file("/src/License.md", client.host().file("./License.md"))
.with_file("/src/pyproject.toml", client.host().file("./pyproject.toml"))
.with_file("/src/README.md", client.host().file("./README.md"))
.with_file("/src/test.env", client.host().file("./test.env"))
)

# try to copy over the .env file for local testing
try:
tst_container = tst_container.with_workdir("/").with_file(
"/src/test.env", client.host().file("./test.env")
)
except dagger.QueryError:
pass

# install profile-specific system dependencies last since tests usually rotate through profiles
if test_args.profile == "apache_spark":
spark_ctr, spark_host = get_spark_container(client)
Expand Down

0 comments on commit 7a93bfc

Please sign in to comment.