-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
Describe the bug
When I run some tests on github action in model zoo repo, I found that the following line in the action yml file will remove the installed python version:
rm -rf /opt/hostedtoolcache
It may lead to the system's default python version will be used to run the tests.
@KumoLiu and I simply check MONAI repo, and found that at least the deploy action is impacted. In the corresponding yml file:
MONAI/.github/workflows/setupapp.yml
Line 103 in 6c9e49e
| rm -rf /opt/hostedtoolcache |
rm -rf /opt/hostedtoolcache is used after python env is set.
If we look at the latest deploy action job, we can see that the python3.9 test actually uses python 3.10 which is not expected.
https://github.com/Project-MONAI/MONAI/actions/runs/7648726812/job/20842001933#step:7:411
Hi @wyli @KumoLiu , I think we should think about how to install the expected python version back before running tests if need rm -rf /opt/hostedtoolcache