Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
15f5073
Update Weekly Preview Version (#8917)
ericspod Jun 15, 2026
2b50110
Add docstring note that Transpose/Transposed do not update the affine…
Akarsh-Doki Jun 22, 2026
6abb750
Fix nnUNet test directory leakage into current working directory (#8887)
aymuos15 Jun 22, 2026
c9c2d50
ci: mute dynamic __warningregistry__ logs noise in pytest suite (#8893)
Priyanshu31102003 Jun 22, 2026
31419ab
tests: remove duplicate and dead test cases (#8896)
aymuos15 Jun 22, 2026
26326b5
Add explicit spatial_ndim tracking to MetaTensor (#8765)
aymuos15 Jun 23, 2026
03338b2
Improve Affine transform documentation and add compute_w_affine tests…
engmohamedsalah Jun 24, 2026
557ffaa
fix: update Dockerfile and requirements-dev.txt for MONAI 1.6 tutoria…
garciadias Jun 24, 2026
8b5725b
Fix division by zero in clDice loss harmonic mean (#8739)
Mr-Neutr0n Jun 25, 2026
87ff41a
fix(losses): register buffers in GlobalMutualInformationLoss (#8872)
AlexanderSanin Jun 25, 2026
58fab44
tests: remove more duplicate test cases (#8943)
aymuos15 Jun 25, 2026
91b1ad7
Fix batched_nms for ndarray inputs (#8901)
aymuos15 Jun 25, 2026
2dbbd49
fix: add missing stacklevel=2 to warnings.warn() in metrics/ (Fixes #…
rtmalikian Jun 25, 2026
5e42fbf
fix: add missing stacklevel=2 to warnings.warn() in losses/ (Fixes #8…
rtmalikian Jun 26, 2026
4ba89bd
fix: adaptor map_names calls dict as function when inputs is a name-m…
aymuos15 Jun 26, 2026
b7d14c8
Enabling MetaTensor Persistent Caching (#8940)
ericspod Jun 28, 2026
9c3b441
Use compact [1,-2,1] kernel for BendingEnergyLoss second derivatives …
vishnukannaujia Jun 29, 2026
03d1c5c
Force GC in WSIReader tests to suppress ResourceWarning for unclosed …
vishnukannaujia Jun 29, 2026
083f911
fix: guard division by zero in DICOMReader._get_affine for single-sli…
rtmalikian Jun 29, 2026
54678aa
fix: replace `raise UserWarning` with `warnings.warn()` in verify_rep…
rtmalikian Jun 30, 2026
683e1d1
Fix FROC num_targets miscount when labels_to_exclude is set (#8951)
aymuos15 Jun 30, 2026
0f5c5ec
Remove dead and redundant code across monai/ (#8952)
aymuos15 Jun 30, 2026
d6713fd
docs: add Windows BUILD_MONAI install instructions (#8906)
Shizoqua Jun 30, 2026
482d1d9
Perf: Use a KDTree on CPU instead of full EDT for 1.5x to 16x faster …
jberg5 Jul 1, 2026
946fd4f
Fix nnUNet runner store_true flag command construction (#8941) (#8944)
aymuos15 Jul 1, 2026
d43bf62
fix: emit nnUNet store_true flags as bare CLI args in nnUNetV2Runner …
aymuos15 Jul 1, 2026
61f5092
Support configurable rotation order in create_rotate (#8963)
aymuos15 Jul 2, 2026
a5fd9bf
Bump actions/checkout from 4 to 7 (#8965)
dependabot[bot] Jul 2, 2026
3630c30
Bump codecov/codecov-action from 6 to 7 (#8966)
dependabot[bot] Jul 2, 2026
2e17e32
Bump actions/cache from 5 to 6 (#8964)
dependabot[bot] Jul 2, 2026
f1dcac4
docs: clarify RandWeightedCrop(d) does not crop the weight map (#7851…
aymuos15 Jul 2, 2026
5be3db9
Enable macOS Install Test Only (#8976)
ericspod Jul 3, 2026
eb74488
Add AbsoluteVolumeDifferenceMetric to monai.metrics (#8945)
MDSALMANSHAMS Jul 3, 2026
abbb47c
fix(data): avoid divide-by-zero in pydicom affine for single-slice vo…
SID-6921 Jul 5, 2026
229f519
Perf: skip redundant full-image mask on StdShiftIntensity nonzero=Fal…
aymuos15 Jul 6, 2026
36a6f0b
HyenaUnetR (SwinUnetR + HyenaND): subquadratic alternative to window…
farhadrgh Jul 10, 2026
10674bc
Fix division by zero in Warp for singleton spatial dimensions (#8946)
VenkateswarluNagineni Jul 11, 2026
1a26bc9
fix: warn when PydicomReader cannot determine affine from DICOM metad…
rtmalikian Jul 11, 2026
3bd4c4f
Warn when PydicomReader falls back to an identity affine (#8468) (#8934)
Shizoqua Jul 11, 2026
fd12fdc
Fix non-functional jitter in Warp.get_reference_grid (#8953)
aymuos15 Jul 12, 2026
3a458fe
[pre-commit.ci] pre-commit suggestions (#8984)
pre-commit-ci[bot] Jul 15, 2026
5da2472
Add BoundaryLoss (#8916)
txmed82 Jul 17, 2026
8885fcb
Make Fuzzy Gdown Argument Version-dependent (#8986)
ericspod Jul 20, 2026
a3d5160
Perf: faster get_largest_connected_component_mask (bincount + LUT gat…
aymuos15 Jul 22, 2026
184708a
fix typos in docs: lazy_resampling, modules, whatsnew_1_5 (#9012)
vikashg Jul 24, 2026
3ee058b
docs: add documentation to CONTRIBUTING.md (#8878)
garciadias Jul 24, 2026
ed76cd5
Fix class_labels mutation across multi-metric write_metrics_reports (…
aymuos15 Jul 30, 2026
8690ae7
fix(MetaTensor): astype with torch dtype now returns MetaTensor prese…
AlexanderSanin Jul 30, 2026
87060c4
Validate downloaded file integrity and raise ValueError on hash misma…
e-mny Aug 7, 2026
faccb5a
Fix clipping boxes with large coordinates (#9047)
Rajioba1 Aug 13, 2026
1a165c9
Raise OptionalImportError for unavailable explicit image readers (#9006)
minsuking Aug 14, 2026
7f6bf2d
feat: replace mypy and pytype with pyrefly for static type analysis (…
garciadias Aug 14, 2026
6644898
Add NaViT: Native Resolution Vision Transformer with Patch n' Pack (#…
vikashg Aug 17, 2026
3e2ff2b
Fix GHSA-873f-pvrv-4x83: warn before executing a bundle's config in l…
garciadias Aug 17, 2026
6d87117
Modernising Build Process (#9010)
ericspod Aug 18, 2026
43c0aae
Safe eval (#8936)
ericspod Aug 18, 2026
e04a802
fix(safeeval): evaluate rewritten AST instead of original string (#9063)
chhayankjain Aug 19, 2026
c1240a2
Lazily import onnx so a broken onnx does not block 'import monai' (#8…
Shizoqua Aug 20, 2026
e8a5344
Fix ClipIntensityPercentiles metadata accumulation (#9003)
engmohamedsalah Aug 23, 2026
7c651e9
Fix NaN gradient in PerceptualLoss normalize_tensor (#8982)
Shizoqua Aug 25, 2026
56f0bd9
Fix dot-notation read on $@ref-backed ConfigParser proxies (#8994)
VenkateswarluNagineni Aug 26, 2026
fd8a819
fix: address Dependabot alerts for mlflow, transformers, setuptools (…
garciadias Aug 28, 2026
7b9cb34
Weekly Preview Fix (#9075)
ericspod Aug 28, 2026
605611b
Fix GHSA-x6pr-233j-x5cw: warn before executing an FL-provisioned bund…
garciadias Aug 29, 2026
7c23098
SwinUNETR: optional flash attention (scaled_dot_product_attention) in…
aymuos15 Sep 1, 2026
02201b8
fix(transforms): make Crop.compute_slices torch.compile-friendly (#8960)
aymuos15 Sep 1, 2026
7fe412b
Update CodeQL Action (#9079)
ericspod Sep 3, 2026
9ea04d4
Precommit Autofixing (#9061)
ericspod Sep 3, 2026
97843f8
Warn before instantiating _target_ from algo_object.json (#9085)
garciadias Sep 3, 2026
434c094
Reject non-finite DICOM affine metadata in PydicomReader (#9087)
garciadias Sep 3, 2026
aff7aad
Harden download/deserialize integrity (weights_only, hash checks, pat…
garciadias Sep 3, 2026
52508f5
Add spatial shape constraints to UNETR docstring and validation
Lubnaaziz-28 Sep 3, 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
2 changes: 1 addition & 1 deletion .github/workflows/blossom-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v7
with:
repository: ${{ fromJson(needs.Authorization.outputs.args).repo }}
ref: ${{ fromJson(needs.Authorization.outputs.args).ref }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ jobs:
env:
# minimum supported version of Python
PYTHON_VER1: '3.10'
# force installation of CPU-only PyTorch
PIP_EXTRA_INDEX_URL: 'https://download.pytorch.org/whl/cpu'
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
- name: Set up Python ${{ env.PYTHON_VER1 }}
uses: actions/setup-python@v6
with:
Expand Down
116 changes: 91 additions & 25 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", "mypy"] # "pytype" omitted for being essentially deprecated, see #8865
opt: ["codeformat", "pyrefly"]
steps:
- name: Clean unused tools
run: |
Expand All @@ -66,7 +66,7 @@ jobs:
sudo rm -rf /opt/ghc /usr/local/.ghcup
sudo docker system prune -f

- uses: actions/checkout@v6
- uses: actions/checkout@v7
- name: Set up Python ${{ env.PYTHON_VER1 }}
uses: actions/setup-python@v6
with:
Expand All @@ -75,13 +75,12 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel
python -m pip install --no-build-isolation -r requirements-dev.txt
python -m pip install .[all,testing]
- name: Lint and type check
run: |
# clean up temporary files
$(pwd)/runtests.sh --build --clean
# Github actions have multiple cores, so parallelize pytype
$(pwd)/runtests.sh --build --${{ matrix.opt }} -j $(nproc --all)
$(pwd)/runtests.sh --build --${{ matrix.opt }}

min-dep: # Test with minumum dependencies installed for different OS, Python, and PyTorch combinations
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -129,7 +128,7 @@ jobs:
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc /usr/local/.ghcup
sudo docker system prune -f
- uses: actions/checkout@v6
- uses: actions/checkout@v7
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
Expand All @@ -138,15 +137,14 @@ jobs:
- name: Prepare pip wheel
run: |
which python
python -m pip install --upgrade pip wheel
python -m pip install --user more-itertools>=8.0
python -m pip install --upgrade pip wheel tomli
- name: Install the minimum dependencies
run: |
# min. requirements
python -m pip install torch==${{ matrix.pytorch-version }}
python -m pip install -r requirements-min.txt
python monai/config/print_dependencies.py build-system | xargs pip install --no-build-isolation
python -m pip install --no-build-isolation .[testing]
python -m pip list
BUILD_MONAI=0 python setup.py develop # no compile of extensions
shell: bash
- if: matrix.os == 'linux-gpu-runner'
name: Print GPU Info
Expand All @@ -171,7 +169,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest] # macOS-latest omitted for now for being very slow, see #8864
os: [windows-latest, ubuntu-latest, macOS-latest] # macOS-latest is very slow (#8864), testing install only
timeout-minutes: 120
env:
QUICKTEST: True
Expand All @@ -191,7 +189,7 @@ jobs:
minimum-size: 8GB
maximum-size: 16GB
disk-root: "D:"
- uses: actions/checkout@v6
- uses: actions/checkout@v7
- name: Set up Python ${{ env.PYTHON_VER1 }}
uses: actions/setup-python@v6
with:
Expand Down Expand Up @@ -219,28 +217,89 @@ jobs:
shell: bash
- name: Install the complete dependencies
run: |
python -m pip install --user --upgrade pip wheel pybind11 # TODO: pybind11 added for macOS, may not be needed
cat "requirements-dev.txt"
python -m pip install --no-build-isolation -r requirements-dev.txt
python -m pip install --user --upgrade pip wheel tomli
python monai/config/print_dependencies.py build-system | xargs pip install --no-build-isolation
python -m pip install --no-build-isolation .[all,testing]
python -m pip list
python -m pip install -e . # test no compile installation
shell: bash
- name: Run compiled (${{ runner.os }})
run: |
python -m pip uninstall -y monai
BUILD_MONAI=1 python -m pip install -e . # compile the cpp extensions
BUILD_MONAI=1 python -m pip install --no-build-isolation -e . # compile the cpp extensions in-place with -e
# ensure extensions were compiled
python -c 'import monai._C' > /dev/null
shell: bash
- name: Run quick tests
- if: runner.os != 'macOS'
name: Run full tests
run: |
python -c 'import torch; print(torch.__version__); print(torch.rand(5,3))'
python -c "import monai; monai.config.print_config()"
python -m unittest -v
shell: bash
- if: runner.os == 'macOS'
name: Run min tests
run: |
python -c 'import torch; print(torch.__version__); print(torch.rand(5,3))'
python -c "import monai; monai.config.print_config()"
# TODO: enable large range of macOS tests which don't take a very long time
./runtests.sh --min
shell: bash

hyena-dep: # Optional HyenaND dependency + the no-CUDA Hyena tests.
# nvsubquadratic >= 0.1.1 supports Python >= 3.10 and keeps its CUDA-kernel sdist
# (subquadratic-ops-torch-cu12) plus the megatron / dali / timm packages in opt-in
# extras, so it installs on a CPU runner. We still pass ``--no-deps`` deliberately:
# (1) the HyenaND operators import only torch + einops + omegaconf at runtime, so
# skipping the (still batteries-included: datasets/lightning/wandb) core deps
# keeps this job lean; and
# (2) nvsubquadratic pins torch>=2.10,<2.11, which would otherwise upgrade/clash
# with the torch this job (and MONAI's matrix) installs.
# CUDA-required Hyena tests skip cleanly here; the GPU surface is covered by
# ``.github/workflows/pythonapp-hyena-gpu.yml``.
runs-on: ubuntu-latest
timeout-minutes: 30
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 ${{ env.PYTHON_VER1 }}
uses: actions/setup-python@v6
with:
python-version: ${{ env.PYTHON_VER1 }}
cache: 'pip'
- name: Install dependencies + nvsubquadratic (no-deps)
run: |
python -m pip install --upgrade pip wheel tomli pytest
# need a specific version of torch for nvsubquadratic
python monai/config/print_dependencies.py build-system | \
xargs -d '\n' pip install --no-build-isolation torch==2.10.0 torchvision==0.25.0
# # nvsubquadratic runtime imports need only torch + einops + omegaconf; install
# # the package itself without its core dependency tree (see job comment above).
python -m pip install --no-build-isolation omegaconf
python -m pip install --no-build-isolation --no-deps 'nvsubquadratic>=0.1.1'
python -m pip install --no-build-isolation .[hyena,testing]
python -m pip list
shell: bash
- name: Run Hyena tests (CUDA-required cases skip cleanly)
run: |
python -c "from monai.networks.blocks.hyena import is_nvsubquadratic_available; \
assert is_nvsubquadratic_available(), 'nvsubquadratic must be importable'"
python -m pytest -v \
tests/networks/blocks/test_hyena_block.py \
tests/networks/nets/test_hyena_nd_unetr.py \
tests/networks/nets/test_swin_unetr.py
shell: bash

packaging: # Test package generation
runs-on: ubuntu-latest
env:
QUICKTEST: True
INDEX_URL: "https://download.pytorch.org/whl/cpu"
steps:
- name: Clean unused tools
run: |
Expand All @@ -249,7 +308,7 @@ jobs:
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc /usr/local/.ghcup
sudo docker system prune -f
- uses: actions/checkout@v6
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Set up Python ${{ env.PYTHON_VER1 }}
Expand All @@ -259,11 +318,10 @@ jobs:
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --user --upgrade pip setuptools wheel twine packaging
python -m pip install --user --upgrade pip setuptools wheel twine packaging tomli
# install the latest pytorch for testing
# however, "pip install monai*.tar.gz" will build cpp/cuda with an isolated
# fresh torch installation according to pyproject.toml
python -m pip install torch==${PYTORCH_VER1} torchvision --extra-index-url https://download.pytorch.org/whl/cpu
python monai/config/print_dependencies.py build-system all testing | \
xargs -d '\n' pip install --no-build-isolation torch==${PYTORCH_VER1} --extra-index-url $INDEX_URL
- name: Check packages
run: |
python -m pip uninstall -y monai
Expand Down Expand Up @@ -292,7 +350,7 @@ jobs:
working-directory: ${{ steps.mktemp.outputs.tmp_dir }}
run: |
# install from wheel
python -m pip install monai*.whl --extra-index-url https://download.pytorch.org/whl/cpu
python -m pip install --no-build-isolation monai*.whl --extra-index-url $INDEX_URL
python -c 'import monai; monai.config.print_config()' 2>&1 | grep -iv "unknown"
python -c 'import monai; print(monai.__file__)'
python -m pip uninstall -y monai
Expand All @@ -302,6 +360,14 @@ jobs:
run: |
for name in *.tar.gz; do break; done
echo $name
python -m pip install ${name}[all] --extra-index-url https://download.pytorch.org/whl/cpu
python -m pip install --no-build-isolation ${name}[all] --extra-index-url $INDEX_URL
python -c 'import monai; monai.config.print_config()' 2>&1 | grep -iv "unknown"
python -c 'import monai; print(monai.__file__)'
python -m pip uninstall -y monai
- name: Install using uv
working-directory: ${{ steps.root.outputs.pwd }}
run: |
pip install uv
uv pip install --system --no-build-isolation .[all] --extra-index-url $INDEX_URL
python -c 'import monai; monai.config.print_config()' 2>&1 | grep -iv "unknown"
python -c 'import monai; print(monai.__file__)'
93 changes: 68 additions & 25 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,67 +9,110 @@
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"
name: "CodeQL Advanced"

on:
push:
branches: [ dev, main ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ dev ]
schedule:
- cron: '18 1 * * 0'
- cron: '0 2 * * 1' # 2AM Monday

env:
PYTHON_VER: '3.11'
PYTORCH_VER: '2.8.0'
BUILD_MONAI: 1
PIP_EXTRA_INDEX_URL: "https://download.pytorch.org/whl/cpu" # forces CPU PyTorch installation, should be faster

jobs:
analyze:
name: Analyze
name: Analyze (${{ matrix.language }})
# Runner size impacts CodeQL analysis time. To learn more, please see:
# - https://gh.io/recommended-hardware-resources-for-running-codeql
# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners (GitHub.com only)
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
runs-on: ubuntu-latest
permissions:
# required for all workflows
security-events: write

# required to fetch internal or private CodeQL packs
packages: read

# only required for workflows in private repositories
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'cpp', 'python' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://git.io/codeql-language-support

include:
- language: actions
build-mode: none
- language: c-cpp
build-mode: none # TODO: get Cpp building working, autobuild doesn't work and manual fails for inexplicable reasons.
- language: python
build-mode: none
# CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'rust', 'swift'
# Use `c-cpp` to analyze code written in C, C++ or both
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@v7

# Add any setup steps before running the `github/codeql-action/init` action.
# This includes steps like installing compilers or runtimes (`actions/setup-node`
# or others). This is typically only required for manual builds.
# - name: Setup runtime (example)
# uses: actions/setup-example@v1

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
# - name: Autobuild
# uses: github/codeql-action/autobuild@v2
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality

# If the analyze step fails for one of the languages you are analyzing with
# "We were unable to automatically build your code", modify the matrix above
# to set the build mode to "manual" for that language. Then modify this step
# to build your code.
# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
- name: Set up Python ${{ env.PYTHON_VER }}
if: matrix.language == 'c-cpp' && matrix.build-mode == 'manual'
uses: actions/setup-python@v6
with:
python-version: ${{ env.PYTHON_VER }}
cache: 'pip'

- name: Build
- name: Run manual build steps
if: matrix.language == 'c-cpp' && matrix.build-mode == 'manual'
shell: bash
run: |
rm -rf /opt/hostedtoolcache/{node,go,Ruby,Java*}
ls -al /opt/hostedtoolcache
rm -rf /usr/share/dotnet/
python -m pip install -U --no-build-isolation pip wheel wheel-stub
python -m pip install --no-build-isolation -r requirements-dev.txt
BUILD_MONAI=1 ./runtests.sh --build
sudo rm -rf /usr/share/dotnet/
python -m pip install -U pip wheel wheel-stub
python -m pip install torch==${PYTORCH_VER} torchvision
python -m pip install --user --upgrade pip wheel
python monai/config/print_dependencies.py build-system | xargs pip install --no-build-isolation
python -m pip install --no-build-isolation .

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{matrix.language}}"
2 changes: 1 addition & 1 deletion .github/workflows/conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
minimum-size: 8GB
maximum-size: 16GB
disk-root: "D:"
- uses: actions/checkout@v6
- uses: actions/checkout@v7
- name: Clean up disk space
run: |
find /opt/hostedtoolcache/* -maxdepth 0 ! -name 'Python' -exec rm -rf {} \;
Expand Down
Loading