6666 sudo rm -rf /opt/ghc /usr/local/.ghcup
6767 sudo docker system prune -f
6868
69- - uses : actions/checkout@v6
69+ - uses : actions/checkout@v7
7070 - name : Set up Python ${{ env.PYTHON_VER1 }}
7171 uses : actions/setup-python@v6
7272 with :
@@ -129,7 +129,7 @@ jobs:
129129 sudo rm -rf /usr/local/lib/android
130130 sudo rm -rf /opt/ghc /usr/local/.ghcup
131131 sudo docker system prune -f
132- - uses : actions/checkout@v6
132+ - uses : actions/checkout@v7
133133 - name : Set up Python ${{ matrix.python-version }}
134134 uses : actions/setup-python@v6
135135 with :
@@ -171,7 +171,7 @@ jobs:
171171 strategy :
172172 fail-fast : false
173173 matrix :
174- os : [windows-latest, ubuntu-latest] # macOS-latest omitted for now for being very slow, see #8864
174+ os : [windows-latest, ubuntu-latest, macOS-latest ] # macOS-latest is very slow ( #8864), testing install only
175175 timeout-minutes : 120
176176 env :
177177 QUICKTEST : True
@@ -191,7 +191,7 @@ jobs:
191191 minimum-size : 8GB
192192 maximum-size : 16GB
193193 disk-root : " D:"
194- - uses : actions/checkout@v6
194+ - uses : actions/checkout@v7
195195 - name : Set up Python ${{ env.PYTHON_VER1 }}
196196 uses : actions/setup-python@v6
197197 with :
@@ -223,19 +223,28 @@ jobs:
223223 cat "requirements-dev.txt"
224224 python -m pip install --no-build-isolation -r requirements-dev.txt
225225 python -m pip list
226- python -m pip install -e . # test no compile installation
226+ python -m pip install --no-build-isolation - e . # test no compile installation
227227 shell : bash
228228 - name : Run compiled (${{ runner.os }})
229229 run : |
230230 python -m pip uninstall -y monai
231- BUILD_MONAI=1 python -m pip install -e . # compile the cpp extensions
231+ BUILD_MONAI=1 python -m pip install --no-build-isolation - e . # compile the cpp extensions
232232 shell : bash
233- - name : Run quick tests
233+ - if : runner.os != 'macOS'
234+ name : Run full tests
234235 run : |
235236 python -c 'import torch; print(torch.__version__); print(torch.rand(5,3))'
236237 python -c "import monai; monai.config.print_config()"
237238 python -m unittest -v
238239 shell : bash
240+ - if : runner.os == 'macOS'
241+ name : Run min tests
242+ run : |
243+ python -c 'import torch; print(torch.__version__); print(torch.rand(5,3))'
244+ python -c "import monai; monai.config.print_config()"
245+ # TODO: enable large range of macOS tests which don't take a very long time
246+ ./runtests.sh --min
247+ shell : bash
239248
240249 packaging : # Test package generation
241250 runs-on : ubuntu-latest
@@ -249,7 +258,7 @@ jobs:
249258 sudo rm -rf /usr/local/lib/android
250259 sudo rm -rf /opt/ghc /usr/local/.ghcup
251260 sudo docker system prune -f
252- - uses : actions/checkout@v6
261+ - uses : actions/checkout@v7
253262 with :
254263 fetch-depth : 0
255264 - name : Set up Python ${{ env.PYTHON_VER1 }}
0 commit comments