tox 4.0 replacement for TOX_TESTENV_PASSENV #2681
-
I have a CI job that runs tox with some environment variables passed through by setting |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hm, using this env var feels like an anti-pattern as you're making your CI behave differently than local. Why not just add those values into passenv? Similar functionality can be done with tox 4 with https://tox.wiki/en/latest/cli_interface.html#tox-run---override, which works as an env-var too |
Beta Was this translation helpful? Give feedback.
-
I have the use case for CI to set:
|
Beta Was this translation helpful? Give feedback.
Hm, using this env var feels like an anti-pattern as you're making your CI behave differently than local. Why not just add those values into passenv?
Similar functionality can be done with tox 4 with https://tox.wiki/en/latest/cli_interface.html#tox-run---override, which works as an env-var too
TOX_OVERRIDE=testenv.passenv=A,B,C
I believe.