8181 runs-on : ubuntu-latest
8282 strategy :
8383 matrix :
84- python-version : ['3.9 ', '3.10 ', '3.11 ']
84+ python-version : ['3.10 ', '3.11 ', '3.12 ']
8585 steps :
8686 - uses : actions/checkout@v6
8787 with :
@@ -90,23 +90,12 @@ jobs:
9090 uses : actions/setup-python@v6
9191 with :
9292 python-version : ${{ matrix.python-version }}
93- - name : cache weekly timestamp
94- id : pip-cache
95- run : |
96- echo "datew=$(date '+%Y-%V')" >> $GITHUB_OUTPUT
97- - name : cache for pip
98- uses : actions/cache@v5
99- id : cache
100- with :
101- path : |
102- ~/.cache/pip
103- ~/.cache/torch
104- key : ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ steps.pip-cache.outputs.datew }}
93+ cache : pip
10594 - name : Install the dependencies
10695 run : |
10796 find /opt/hostedtoolcache/* -maxdepth 0 ! -name 'Python' -exec rm -rf {} \;
10897 python -m pip install --upgrade pip wheel
109- python -m pip install -r requirements-dev.txt
98+ python -m pip install --no-build-isolation - r requirements-dev.txt
11099 - name : Run quick tests CPU ubuntu
111100 env :
112101 NGC_API_KEY : ${{ secrets.NGC_API_KEY }}
@@ -115,8 +104,8 @@ jobs:
115104 run : |
116105 python -m pip list
117106 python -c 'import torch; print(torch.__version__); print(torch.rand(5,3))'
118- BUILD_MONAI=0 ./runtests.sh --build --quick --unittests
119- BUILD_MONAI=1 ./runtests.sh --build --quick --min
107+ BUILD_MONAI=0 ./runtests.sh --build --coverage -- quick --unittests
108+ BUILD_MONAI=1 ./runtests.sh --build --coverage -- quick --min
120109 coverage xml --ignore-errors
121110 - name : Upload coverage
122111 uses : codecov/codecov-action@v5
0 commit comments