Jammy2211 / PyAutoBuild

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Customze if PYAUTOFIT_TEST_MODE is used

Jammy2211 opened this issue · comments

In the vast majority of scripts, we want build runs to use the environment variable PYAUTOFIT_TEST_MODE=1, disabling many time consuming steps.

However, there are a subset of scripts (in the _test workspaces) which check things work ok without this setting. Currently, because PYAUTOFIT_TEST_MODE is set in run_scripts.py, we cannot customize this value.

Can we make this an input which is customized in the .github folder builsd script?

The only scripts we want to not run in test mode are the visualizer.py scripts in the _test workspaces.

Therefore, we may instead want a simple if clause in the run.py and run_python.py scripts which changes the enviroment variable for only these scripts.

I think we can simply require that any scripts run in the _test workspaces do not use PYAUTOFIT_TEST_MODE=1 mode, which should simplyify the problem a lot.