Skip to content

Commit b51411c

Browse files
authored
Merge branch 'dev' into fix-6840
2 parents 9944127 + 958dac7 commit b51411c

190 files changed

Lines changed: 2342 additions & 788 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/chatops.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: dispatch
13-
uses: peter-evans/slash-command-dispatch@v4.0.0
13+
uses: peter-evans/slash-command-dispatch@v5.0.2
1414
with:
1515
token: ${{ secrets.PR_MAINTAIN }}
1616
reaction-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838

3939
steps:
4040
- name: Checkout repository
41-
uses: actions/checkout@v5
41+
uses: actions/checkout@v6
4242

4343
# Initializes the CodeQL tools for scanning.
4444
- name: Initialize CodeQL

.github/workflows/conda.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ jobs:
2727
steps:
2828
- if: runner.os == 'windows'
2929
name: Config pagefile (Windows only)
30-
uses: al-cheb/configure-pagefile-action@v1.4
30+
uses: al-cheb/configure-pagefile-action@v1.5
3131
with:
3232
minimum-size: 8GB
3333
maximum-size: 16GB
3434
disk-root: "D:"
35-
- uses: actions/checkout@v5
35+
- uses: actions/checkout@v6
3636
- name: Clean up disk space
3737
run: |
3838
find /opt/hostedtoolcache/* -maxdepth 0 ! -name 'Python' -exec rm -rf {} \;

.github/workflows/cron-ngc-bundle.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
if: github.repository == 'Project-MONAI/MONAI'
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@v5
20+
- uses: actions/checkout@v6
2121
- name: Set up Python 3.9
2222
uses: actions/setup-python@v6
2323
with:
@@ -26,7 +26,7 @@ jobs:
2626
id: pip-cache
2727
run: echo "datew=$(date '+%Y-%V')" >> $GITHUB_OUTPUT
2828
- name: cache for pip
29-
uses: actions/cache@v4
29+
uses: actions/cache@v5
3030
id: cache
3131
with:
3232
path: ~/.cache/pip

.github/workflows/cron.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
options: "--gpus all"
3333
runs-on: [self-hosted, linux, x64, common]
3434
steps:
35-
- uses: actions/checkout@v5
35+
- uses: actions/checkout@v6
3636
- name: apt install
3737
run: |
3838
apt-get update
@@ -82,7 +82,7 @@ jobs:
8282
options: "--gpus all"
8383
runs-on: [self-hosted, linux, x64, integration]
8484
steps:
85-
- uses: actions/checkout@v5
85+
- uses: actions/checkout@v6
8686
- name: Install APT dependencies
8787
run: |
8888
apt-get update
@@ -131,7 +131,7 @@ jobs:
131131
options: "--gpus all"
132132
runs-on: [self-hosted, linux, x64, integration]
133133
steps:
134-
- uses: actions/checkout@v5
134+
- uses: actions/checkout@v6
135135
with:
136136
fetch-depth: 0
137137
- name: Install the dependencies
@@ -233,7 +233,7 @@ jobs:
233233
options: "--gpus all --ipc=host"
234234
runs-on: [self-hosted, linux, x64, integration]
235235
steps:
236-
- uses: actions/checkout@v5
236+
- uses: actions/checkout@v6
237237
- name: Install MONAI
238238
id: monai-install
239239
run: |

.github/workflows/docker.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
if: ${{ false }} # disable docker build job project-monai/monai#7450
2222
runs-on: ubuntu-latest
2323
steps:
24-
- uses: actions/checkout@v5
24+
- uses: actions/checkout@v6
2525
# full history so that we can git describe
2626
with:
2727
ref: dev
@@ -37,7 +37,7 @@ jobs:
3737
python setup.py build
3838
cat build/lib/monai/_version.py
3939
- name: Upload version
40-
uses: actions/upload-artifact@v5
40+
uses: actions/upload-artifact@v6
4141
with:
4242
name: _version.py
4343
path: build/lib/monai/_version.py
@@ -53,7 +53,7 @@ jobs:
5353
needs: versioning_dev
5454
runs-on: ubuntu-latest
5555
steps:
56-
- uses: actions/checkout@v5
56+
- uses: actions/checkout@v6
5757
with:
5858
ref: dev
5959
- name: Download version

.github/workflows/integration.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: [self-hosted, linux, x64, command]
1414
steps:
1515
# checkout the pull request branch
16-
- uses: actions/checkout@v5
16+
- uses: actions/checkout@v6
1717
with:
1818
token: ${{ secrets.PR_MAINTAIN }}
1919
repository: ${{ github.event.client_payload.pull_request.head.repo.full_name }}
@@ -22,7 +22,7 @@ jobs:
2222
id: pip-cache
2323
run: echo "datew=$(date '+%Y-%V')" >> $GITHUB_OUTPUT
2424
- name: cache for pip
25-
uses: actions/cache@v4
25+
uses: actions/cache@v5
2626
id: cache
2727
with:
2828
path: |
@@ -89,7 +89,7 @@ jobs:
8989
runs-on: [self-hosted, linux, x64, command1]
9090
steps:
9191
# checkout the pull request branch
92-
- uses: actions/checkout@v5
92+
- uses: actions/checkout@v6
9393
with:
9494
token: ${{ secrets.PR_MAINTAIN }}
9595
repository: ${{ github.event.client_payload.pull_request.head.repo.full_name }}
@@ -98,7 +98,7 @@ jobs:
9898
id: pip-cache
9999
run: echo "datew=$(date '+%Y-%V')" >> $GITHUB_OUTPUT
100100
- name: cache for pip
101-
uses: actions/cache@v4
101+
uses: actions/cache@v5
102102
id: cache
103103
with:
104104
path: |

.github/workflows/pythonapp-gpu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
options: --gpus all --env NVIDIA_DISABLE_REQUIRE=true # workaround for unsatisfied condition: cuda>=11.6
4545
runs-on: [self-hosted, linux, x64, common]
4646
steps:
47-
- uses: actions/checkout@v5
47+
- uses: actions/checkout@v6
4848
- name: apt install
4949
if: github.event.pull_request.merged != true
5050
run: |

.github/workflows/pythonapp-min.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
os: [windows-latest, macOS-latest, ubuntu-latest]
3131
timeout-minutes: 40
3232
steps:
33-
- uses: actions/checkout@v5
33+
- uses: actions/checkout@v6
3434
- name: Set up Python 3.9
3535
uses: actions/setup-python@v6
3636
with:
@@ -46,7 +46,7 @@ jobs:
4646
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
4747
shell: bash
4848
- name: cache for pip
49-
uses: actions/cache@v4
49+
uses: actions/cache@v5
5050
id: cache
5151
with:
5252
path: ${{ steps.pip-cache.outputs.dir }}
@@ -79,7 +79,7 @@ jobs:
7979
python-version: ['3.9', '3.10', '3.11', '3.12']
8080
timeout-minutes: 40
8181
steps:
82-
- uses: actions/checkout@v5
82+
- uses: actions/checkout@v6
8383
- name: Set up Python ${{ matrix.python-version }}
8484
uses: actions/setup-python@v6
8585
with:
@@ -96,7 +96,7 @@ jobs:
9696
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
9797
shell: bash
9898
- name: cache for pip
99-
uses: actions/cache@v4
99+
uses: actions/cache@v5
100100
id: cache
101101
with:
102102
path: ${{ steps.pip-cache.outputs.dir }}
@@ -128,7 +128,7 @@ jobs:
128128
pytorch-version: ['2.5.1', '2.6.0', '2.7.1', '2.8.0']
129129
timeout-minutes: 40
130130
steps:
131-
- uses: actions/checkout@v5
131+
- uses: actions/checkout@v6
132132
- name: Set up Python 3.9
133133
uses: actions/setup-python@v6
134134
with:
@@ -145,7 +145,7 @@ jobs:
145145
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
146146
shell: bash
147147
- name: cache for pip
148-
uses: actions/cache@v4
148+
uses: actions/cache@v5
149149
id: cache
150150
with:
151151
path: ${{ steps.pip-cache.outputs.dir }}

.github/workflows/pythonapp.yml

Lines changed: 19 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -28,26 +28,17 @@ jobs:
2828
matrix:
2929
opt: ["codeformat", "pytype", "mypy"]
3030
steps:
31-
- uses: actions/checkout@v5
31+
- uses: actions/checkout@v6
3232
- name: Set up Python 3.9
3333
uses: actions/setup-python@v6
3434
with:
3535
python-version: '3.9'
36-
- name: cache weekly timestamp
37-
id: pip-cache
38-
run: |
39-
echo "datew=$(date '+%Y-%V')" >> $GITHUB_OUTPUT
40-
- name: cache for pip
41-
uses: actions/cache@v4
42-
id: cache
43-
with:
44-
path: ~/.cache/pip
45-
key: ${{ runner.os }}-pip-${{ steps.pip-cache.outputs.datew }}
36+
cache: 'pip'
4637
- name: Install dependencies
4738
run: |
4839
find /opt/hostedtoolcache/* -maxdepth 0 ! -name 'Python' -exec rm -rf {} \;
4940
python -m pip install --upgrade pip wheel
50-
python -m pip install -r requirements-dev.txt
41+
python -m pip install --no-build-isolation -r requirements-dev.txt
5142
- name: Lint and type check
5243
run: |
5344
# clean up temporary files
@@ -65,32 +56,21 @@ jobs:
6556
steps:
6657
- if: runner.os == 'windows'
6758
name: Config pagefile (Windows only)
68-
uses: al-cheb/configure-pagefile-action@v1.4
59+
uses: al-cheb/configure-pagefile-action@v1.5
6960
with:
7061
minimum-size: 8GB
7162
maximum-size: 16GB
7263
disk-root: "D:"
73-
- uses: actions/checkout@v5
64+
- uses: actions/checkout@v6
7465
- name: Set up Python 3.9
7566
uses: actions/setup-python@v6
7667
with:
7768
python-version: '3.9'
69+
cache: 'pip'
7870
- name: Prepare pip wheel
7971
run: |
8072
which python
8173
python -m pip install --upgrade pip wheel
82-
- name: cache weekly timestamp
83-
id: pip-cache
84-
run: |
85-
echo "datew=$(date '+%Y-%V')" >> $GITHUB_OUTPUT
86-
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
87-
shell: bash
88-
- name: cache for pip
89-
uses: actions/cache@v4
90-
id: cache
91-
with:
92-
path: ${{ steps.pip-cache.outputs.dir }}
93-
key: ${{ matrix.os }}-latest-pip-${{ steps.pip-cache.outputs.datew }}
9474
- if: runner.os == 'windows'
9575
name: Install torch cpu from pytorch.org (Windows only)
9676
run: |
@@ -105,14 +85,14 @@ jobs:
10585
python -m pip install --user --upgrade pip wheel
10686
python -m pip install torch==2.5.1 torchvision==0.20.1
10787
cat "requirements-dev.txt"
108-
python -m pip install -r requirements-dev.txt
88+
python -m pip install --no-build-isolation -r requirements-dev.txt
10989
python -m pip list
110-
python setup.py develop # test no compile installation
90+
python -m pip install -e . # test no compile installation
11191
shell: bash
11292
- name: Run compiled (${{ runner.os }})
11393
run: |
114-
python setup.py develop --uninstall
115-
BUILD_MONAI=1 python setup.py develop # compile the cpp extensions
94+
python -m pip uninstall -y monai
95+
BUILD_MONAI=1 python -m pip install -e . # compile the cpp extensions
11696
shell: bash
11797
- name: Run quick tests (CPU ${{ runner.os }})
11898
run: |
@@ -129,33 +109,22 @@ jobs:
129109
QUICKTEST: True
130110
shell: bash
131111
steps:
132-
- uses: actions/checkout@v5
112+
- uses: actions/checkout@v6
133113
with:
134114
fetch-depth: 0
135115
- name: Set up Python 3.9
136116
uses: actions/setup-python@v6
137117
with:
138118
python-version: '3.9'
139-
- name: cache weekly timestamp
140-
id: pip-cache
141-
run: |
142-
echo "datew=$(date '+%Y-%V')" >> $GITHUB_OUTPUT
143-
- name: cache for pip
144-
uses: actions/cache@v4
145-
id: cache
146-
with:
147-
path: |
148-
~/.cache/pip
149-
~/.cache/torch
150-
key: ${{ runner.os }}-pip-${{ steps.pip-cache.outputs.datew }}
119+
cache: 'pip'
151120
- name: Install dependencies
152121
run: |
153122
find /opt/hostedtoolcache/* -maxdepth 0 ! -name 'Python' -exec rm -rf {} \;
154123
python -m pip install --user --upgrade pip setuptools wheel twine packaging
155124
# install the latest pytorch for testing
156125
# however, "pip install monai*.tar.gz" will build cpp/cuda with an isolated
157126
# fresh torch installation according to pyproject.toml
158-
python -m pip install torch>=2.5.1 torchvision
127+
python -m pip install torch>=2.5.1 torchvision --extra-index-url https://download.pytorch.org/whl/cpu
159128
- name: Check packages
160129
run: |
161130
pip uninstall monai
@@ -184,7 +153,7 @@ jobs:
184153
working-directory: ${{ steps.mktemp.outputs.tmp_dir }}
185154
run: |
186155
# install from wheel
187-
python -m pip install monai*.whl
156+
python -m pip install monai*.whl --extra-index-url https://download.pytorch.org/whl/cpu
188157
python -c 'import monai; monai.config.print_config()' 2>&1 | grep -iv "unknown"
189158
python -c 'import monai; print(monai.__file__)'
190159
python -m pip uninstall -y monai
@@ -195,7 +164,7 @@ jobs:
195164
# install from tar.gz
196165
name=$(ls *.tar.gz | head -n1)
197166
echo $name
198-
python -m pip install $name[all]
167+
python -m pip install $name[all] --extra-index-url https://download.pytorch.org/whl/cpu
199168
python -c 'import monai; monai.config.print_config()' 2>&1 | grep -iv "unknown"
200169
python -c 'import monai; print(monai.__file__)'
201170
- name: Quick test
@@ -205,35 +174,24 @@ jobs:
205174
cp ${{ steps.root.outputs.pwd }}/requirements*.txt .
206175
cp -r ${{ steps.root.outputs.pwd }}/tests .
207176
ls -al
208-
python -m pip install -r requirements-dev.txt
177+
python -m pip install --no-build-isolation -r requirements-dev.txt --extra-index-url https://download.pytorch.org/whl/cpu
209178
python -m unittest -v
210179
env:
211180
PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION: python # https://github.com/Project-MONAI/MONAI/issues/4354
212181

213182
build-docs:
214183
runs-on: ubuntu-latest
215184
steps:
216-
- uses: actions/checkout@v5
185+
- uses: actions/checkout@v6
217186
- name: Set up Python 3.9
218187
uses: actions/setup-python@v6
219188
with:
220189
python-version: '3.9'
221-
- name: cache weekly timestamp
222-
id: pip-cache
223-
run: |
224-
echo "datew=$(date '+%Y-%V')" >> $GITHUB_OUTPUT
225-
- name: cache for pip
226-
uses: actions/cache@v4
227-
id: cache
228-
with:
229-
path: |
230-
~/.cache/pip
231-
~/.cache/torch
232-
key: ${{ runner.os }}-pip-${{ steps.pip-cache.outputs.datew }}
190+
cache: 'pip'
233191
- name: Install dependencies
234192
run: |
235193
python -m pip install --upgrade pip wheel
236-
python -m pip install -r docs/requirements.txt
194+
python -m pip install -r docs/requirements.txt --extra-index-url https://download.pytorch.org/whl/cpu
237195
- name: Make html
238196
run: |
239197
cd docs/

0 commit comments

Comments
 (0)