Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
0cf49ca
Minor cleanup
ericspod May 18, 2026
7592c32
Updates, remove pytype and macOS tests
ericspod May 21, 2026
7693730
Fix for tests not compatible with PyTorch 2.12 yet
ericspod May 21, 2026
103bafd
Merge branch 'dev' into further_cicd_cleanup
ericspod May 21, 2026
2b77362
Fixing NGC script
ericspod May 21, 2026
6f2d047
Merge branch 'further_cicd_cleanup' of github.com:ericspod/MONAI into…
ericspod May 21, 2026
ec54565
NGC fix
ericspod May 22, 2026
2e89984
Run deploy for testing
ericspod May 22, 2026
f74022e
pip caching needs a requirements.txt file?
ericspod May 22, 2026
d99e97e
setuptools fix
ericspod May 22, 2026
fbe50f3
Removing pytype requirement
ericspod May 22, 2026
75e7861
Permissions update
ericspod May 22, 2026
1c97735
LMDB dataset fixes to account for recent changes
ericspod May 22, 2026
d3ac4e4
Merge branch 'further_cicd_cleanup' of github.com:ericspod/MONAI into…
ericspod May 22, 2026
d452bd6
Merge branch 'further_cicd_cleanup' of github.com:ericspod/MONAI into…
ericspod May 22, 2026
880dec9
Further fixes
ericspod May 22, 2026
55da7b6
Merge branch 'dev' into further_cicd_cleanup
ericspod May 22, 2026
c8459ca
Yaml fix
ericspod May 22, 2026
5de98fa
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] May 22, 2026
5aeb06a
Fix
ericspod May 23, 2026
2f60913
Temporarily simply test process in coverage tests
ericspod May 26, 2026
a8447d8
Temporarily simply test process in coverage tests
ericspod May 26, 2026
84cca97
Adding pytest to get around cupy 14.1.0 bug
ericspod May 26, 2026
3d87a0e
Improve code coverage (hopefully)
ericspod May 26, 2026
ed76ae8
Dependabot updates
ericspod May 26, 2026
6d4e1f2
Try quick tests
ericspod May 26, 2026
bc422e3
Disable coverage tests, return to coverage testing later to run as a …
ericspod May 26, 2026
1adf887
precommit fix
ericspod May 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 4 additions & 14 deletions .github/workflows/cicd_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
opt: ["codeformat", "pytype", "mypy"]
opt: ["codeformat", "mypy"] # "pytype" omitted for being essentially deprecated, see #8865
steps:
- name: Clean unused tools
run: |
Expand Down Expand Up @@ -171,7 +171,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [windows-latest, macOS-latest, ubuntu-latest]
os: [windows-latest, ubuntu-latest] # macOS-latest omitted for now for being very slow, see #8864
timeout-minutes: 120
env:
QUICKTEST: True
Expand Down Expand Up @@ -220,7 +220,6 @@ jobs:
- name: Install the complete dependencies
run: |
python -m pip install --user --upgrade pip wheel pybind11 # TODO: pybind11 added for macOS, may not be needed
#python -m pip install torch==${PYTORCH_VER1} torchvision==${TORCHVISION_VER1}
cat "requirements-dev.txt"
python -m pip install --no-build-isolation -r requirements-dev.txt
python -m pip list
Expand Down Expand Up @@ -267,8 +266,8 @@ jobs:
python -m pip install torch==${PYTORCH_VER1} torchvision --extra-index-url https://download.pytorch.org/whl/cpu
- name: Check packages
run: |
pip uninstall monai
pip list | grep -iv monai
python -m pip uninstall -y monai
python -m pip list | grep -iv monai
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
set -e

Expand Down Expand Up @@ -306,12 +305,3 @@ jobs:
python -m pip install ${name}[all] --extra-index-url https://download.pytorch.org/whl/cpu
python -c 'import monai; monai.config.print_config()' 2>&1 | grep -iv "unknown"
python -c 'import monai; print(monai.__file__)'
- name: Quick test
working-directory: ${{ steps.mktemp.outputs.tmp_dir }}
run: |
# run min tests
cp ${{ steps.root.outputs.pwd }}/requirements*.txt .
cp -r ${{ steps.root.outputs.pwd }}/tests .
ls -al
python -m pip install --no-build-isolation -r requirements-dev.txt --extra-index-url https://download.pytorch.org/whl/cpu
python -m unittest -v
20 changes: 9 additions & 11 deletions .github/workflows/cron-ngc-bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
name: cron-ngc-bundle

on:
pull_request:
branches:
- dev # temporary for testing in the PR
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
schedule:
- cron: "0 2 * * *" # at 02:00 UTC
# Allows you to run this workflow manually from the Actions tab
Expand All @@ -22,20 +25,15 @@ jobs:
uses: actions/setup-python@v6
with:
python-version: '3.10'
- name: cache weekly timestamp
id: pip-cache
run: echo "datew=$(date '+%Y-%V')" >> $GITHUB_OUTPUT
- name: cache for pip
uses: actions/cache@v5
id: cache
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ steps.pip-cache.outputs.datew }}
cache: pip
- name: Install CPU PyTorch
run: |
python -m pip install torch==2.8.0 torchvision --extra-index-url https://download.pytorch.org/whl/cpu
- name: Install dependencies
run: |
rm -rf /github/home/.cache/torch/hub/bundle/
python -m pip install --upgrade pip wheel
python -m pip install -r requirements-dev.txt
python -m pip install --no-build-isolation --upgrade pip wheel wheel-stub
python -m pip install --no-build-isolation -r requirements-dev.txt
- name: Loading Bundles
run: |
# clean up temporary files
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12']
python-version: ['3.10', '3.11', '3.12', '3.13']
steps:
- uses: actions/checkout@v6
with:
Expand Down
21 changes: 8 additions & 13 deletions .github/workflows/setupapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- name: Install the dependencies
run: |
which python
python -m pip install --upgrade pip wheel
python -m pip install --upgrade pip wheel wheel-stub
python -m pip install --upgrade torch torchvision
Comment thread
ericspod marked this conversation as resolved.
Outdated
python -m pip install -r requirements-dev.txt
- name: Run unit tests report coverage
Expand Down Expand Up @@ -91,10 +91,13 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install CPU PyTorch
run: |
python -m pip install torch==2.8.0 torchvision --extra-index-url https://download.pytorch.org/whl/cpu
- name: Install the dependencies
run: |
find /opt/hostedtoolcache/* -maxdepth 0 ! -name 'Python' -exec rm -rf {} \;
python -m pip install --upgrade pip wheel
python -m pip install --no-build-isolation --upgrade pip wheel wheel-stub
python -m pip install --no-build-isolation -r requirements-dev.txt
- name: Run quick tests CPU ubuntu
env:
Expand All @@ -120,18 +123,10 @@ jobs:
uses: actions/setup-python@v6
with:
python-version: '3.10'
- name: cache weekly timestamp
id: pip-cache
cache: pip
- name: Install CPU PyTorch
run: |
echo "datew=$(date '+%Y-%V')" >> $GITHUB_OUTPUT
- name: cache for pip
uses: actions/cache@v5
id: cache
with:
path: |
~/.cache/pip
~/.cache/torch
key: ${{ runner.os }}-pip-${{ steps.pip-cache.outputs.datew }}
python -m pip install torch==2.8.0 torchvision --extra-index-url https://download.pytorch.org/whl/cpu
- name: Install the default branch no build (dev branch only)
if: github.ref == 'refs/heads/dev'
run: |
Expand Down
29 changes: 13 additions & 16 deletions .github/workflows/weekly-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,38 +5,35 @@ on:
- cron: "0 2 * * 0" # 02:00 of every Sunday

jobs:
flake8-py3:
static-checks:
runs-on: ubuntu-latest
strategy:
matrix:
opt: ["codeformat", "pytype", "mypy"]
opt: ["codeformat", "mypy"]
steps:
- name: Clean unused tools
run: |
find /opt/hostedtoolcache/* -maxdepth 0 ! -name 'Python' -exec rm -rf {} \;
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc /usr/local/.ghcup
sudo docker system prune -f

- uses: actions/checkout@v6
- name: Set up Python 3.10
uses: actions/setup-python@v6
with:
python-version: '3.10'
- name: cache weekly timestamp
id: pip-cache
run: |
echo "datew=$(date '+%Y-%V')" >> $GITHUB_OUTPUT
- name: cache for pip
uses: actions/cache@v5
id: cache
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ steps.pip-cache.outputs.datew }}
cache: 'pip'
Comment thread
ericspod marked this conversation as resolved.
- name: Install dependencies
run: |
find /opt/hostedtoolcache/* -maxdepth 0 ! -name 'Python' -exec rm -rf {} \;
python -m pip install --upgrade pip wheel
python -m pip install -r requirements-dev.txt
python -m pip install --no-build-isolation -r requirements-dev.txt
- name: Lint and type check
run: |
# clean up temporary files
$(pwd)/runtests.sh --build --clean
# Github actions have 2 cores, so parallelize pytype
$(pwd)/runtests.sh --build --${{ matrix.opt }} -j 2
$(pwd)/runtests.sh --build --${{ matrix.opt }}

packaging:
if: github.repository == 'Project-MONAI/MONAI'
Expand Down
2 changes: 1 addition & 1 deletion environment-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ channels:
- conda-forge
dependencies:
- numpy>=1.24,<3.0
- pytorch>=2.3.0
- pytorch>=2.8.0
- torchio
- torchvision
- pytorch-cuda>=11.6
Expand Down
Loading