-
Notifications
You must be signed in to change notification settings - Fork 532
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow setting the workdir using environment variables #3792
Allow setting the workdir using environment variables #3792
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @BabyChouSr! I tested manually and it works. Can we add some tests for this functionality?
Yup! just added a simple one in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @BabyChouSr! This should be good to go after the linter passes.
@@ -146,3 +146,13 @@ def test_invalid_empty_envs(tmp_path): | |||
with pytest.raises(ValueError) as e: | |||
Task.from_yaml(config_path) | |||
assert 'Environment variable \'env_key2\' is None.' in e.value.args[0] | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may want to run ./format.sh
(after running pip install -r requirements-dev.txt
) to keep the linter happy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @BabyChouSr! LGTM after a minor nit.
Co-authored-by: Romil Bhardwaj <[email protected]>
Allows the workdir to be configured using environment variables.
Closes #3271
Tested (run the relevant ones):
bash format.sh
pytest tests/test_smoke.py
pytest tests/test_smoke.py::test_fill_in_the_name
conda deactivate; bash -i tests/backward_compatibility_tests.sh