Skip to content

Commit e970953

Browse files
committed
ci: observe full dependency resolution on Python 3.12
Add an informational Ubuntu job that installs all optional and test dependencies on Python 3.12, checks the resolved environment, and uploads a version snapshot. Keep the existing Python 3.10 full-dependency matrix unchanged. Assisted-by: OpenAI Codex Signed-off-by: Demetrios Agourakis <demetrios@agourakis.med.br>
1 parent 02a8ef3 commit e970953

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

‎.github/workflows/cicd_tests.yml‎

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,44 @@ jobs:
290290
./runtests.sh --min
291291
shell: bash
292292

293+
full-dep-py312-resolution:
294+
runs-on: ubuntu-latest
295+
needs: test_skip
296+
if: needs.test_skip.outputs.skip == 0
297+
continue-on-error: true # Observe newer dependency resolution without blocking unrelated PRs.
298+
timeout-minutes: 90
299+
steps:
300+
- name: Clean unused tools
301+
run: |
302+
find /opt/hostedtoolcache/* -maxdepth 0 ! -name 'Python' -exec rm -rf {} \;
303+
sudo rm -rf /usr/share/dotnet
304+
sudo rm -rf /usr/local/lib/android
305+
sudo rm -rf /opt/ghc /usr/local/.ghcup
306+
sudo docker system prune -f
307+
- uses: actions/checkout@v7
308+
- name: Set up Python ${{ env.PYTHON_VER3 }}
309+
uses: actions/setup-python@v6
310+
with:
311+
python-version: ${{ env.PYTHON_VER3 }}
312+
cache: 'pip'
313+
- name: Install complete dependencies
314+
shell: bash
315+
run: |
316+
python -m pip install --upgrade pip wheel tomli
317+
python monai/config/print_dependencies.py build-system | xargs pip install --no-build-isolation
318+
python -m pip install --no-build-isolation '.[all,testing]'
319+
python -m pip check
320+
- name: Record resolved dependencies
321+
if: always()
322+
shell: bash
323+
run: python -m pip freeze > py312-full-dep-resolved.txt
324+
- name: Upload resolved dependencies
325+
if: always()
326+
uses: actions/upload-artifact@v7
327+
with:
328+
name: py312-full-dep-resolved
329+
path: py312-full-dep-resolved.txt
330+
293331
hyena-dep: # Optional HyenaND dependency + the no-CUDA Hyena tests.
294332
# nvsubquadratic >= 0.1.1 supports Python >= 3.10 and keeps its CUDA-kernel sdist
295333
# (subquadratic-ops-torch-cu12) plus the megatron / dali / timm packages in opt-in

0 commit comments

Comments
 (0)