Fixes cron test
* fixes one of the cron test
"pip install 'torch>=1.5,<1.7' torchvision" will not install the correct
version combination of torch and torch vision, this commit
makes the versions to install more specific.
@@ -21,9 +21,11 @@ jobs:
python -m pip install --upgrade pip wheel
python -m pip uninstall -y torch torchvision
# Although the below matrix says 'latest', we currently want to refrain from using
- # torch==1.7.0, as parts of MONAI are incompatible. Thus the '<1.7'.
+ # torch==1.7.0, as parts of MONAI are incompatible. Thus the '==1.6.0'.
+ # TODO: make the latest runs on the latest version of torch/torchvision
if [ ${{ matrix.pytorch-version }} == "latest" ]; then
- python -m pip install 'torch>=1.5,<1.7' torchvision
+ python -m pip install torch==1.6.0
+ python -m pip install torchvision==0.7.0
elif [ ${{ matrix.pytorch-version }} == "1.5.0" ]; then
python -m pip install torch==1.5.0
python -m pip install torchvision==0.6.0
