From 3d212860c14571b54ba591f37b537188e3de55fd Mon Sep 17 00:00:00 2001 From: Jeff <138259519+jdotc1@users.noreply.github.com> Date: Sat, 24 Oct 2026 16:50:18 -0400 Subject: [PATCH 1/2] COMP: Report skipped xarray tests in Python CI --- Testing/ContinuousIntegration/AzurePipelinesMacOSPython.yml | 2 +- Testing/ContinuousIntegration/AzurePipelinesWindowsPython.yml | 2 +- Wrapping/Generators/Python/Tests/CMakeLists.txt | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Testing/ContinuousIntegration/AzurePipelinesMacOSPython.yml b/Testing/ContinuousIntegration/AzurePipelinesMacOSPython.yml index 32d596e1bc8..90f981cf191 100644 --- a/Testing/ContinuousIntegration/AzurePipelinesMacOSPython.yml +++ b/Testing/ContinuousIntegration/AzurePipelinesMacOSPython.yml @@ -80,7 +80,7 @@ jobs: sudo pip3 install ninja numpy>=1.20 typing-extensions sudo python3 -m pip install --upgrade setuptools sudo python3 -m pip install scikit-ci-addons - sudo python3 -m pip install lxml dask distributed + sudo python3 -m pip install lxml dask distributed xarray brew install ccache displayName: 'Install dependencies' diff --git a/Testing/ContinuousIntegration/AzurePipelinesWindowsPython.yml b/Testing/ContinuousIntegration/AzurePipelinesWindowsPython.yml index 3e834a7dfda..4b818ca4906 100644 --- a/Testing/ContinuousIntegration/AzurePipelinesWindowsPython.yml +++ b/Testing/ContinuousIntegration/AzurePipelinesWindowsPython.yml @@ -59,7 +59,7 @@ jobs: - script: | python -m pip install ninja numpy>=1.20 typing-extensions python -m pip install --upgrade setuptools - python -m pip install scikit-ci-addons dask distributed lxml + python -m pip install scikit-ci-addons dask distributed lxml xarray choco install ccache -y displayName: 'Install dependencies' diff --git a/Wrapping/Generators/Python/Tests/CMakeLists.txt b/Wrapping/Generators/Python/Tests/CMakeLists.txt index c17427e455d..5e0b51280c2 100644 --- a/Wrapping/Generators/Python/Tests/CMakeLists.txt +++ b/Wrapping/Generators/Python/Tests/CMakeLists.txt @@ -225,6 +225,10 @@ if(ITK_WRAP_unsigned_char AND WRAP_2) ${CMAKE_CURRENT_SOURCE_DIR}/test_xarray.py DATA{${WrapITK_SOURCE_DIR}/images/cthead1.png} ) + set_tests_properties( + PythonXarrayTest + PROPERTIES SKIP_REGULAR_EXPRESSION "xarray not imported" + ) itk_python_add_test( NAME PythonImreadSingleFileListTest COMMAND From ca27ff978fb2707af0d0f1f13e7da16443968b73 Mon Sep 17 00:00:00 2001 From: Jeff <138259519+jdotc1@users.noreply.github.com> Date: Sat, 24 Oct 2026 17:01:57 -0400 Subject: [PATCH 2/2] STYLE: Format xarray test skip property --- Wrapping/Generators/Python/Tests/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Wrapping/Generators/Python/Tests/CMakeLists.txt b/Wrapping/Generators/Python/Tests/CMakeLists.txt index 5e0b51280c2..07b049d71f0 100644 --- a/Wrapping/Generators/Python/Tests/CMakeLists.txt +++ b/Wrapping/Generators/Python/Tests/CMakeLists.txt @@ -227,7 +227,9 @@ if(ITK_WRAP_unsigned_char AND WRAP_2) ) set_tests_properties( PythonXarrayTest - PROPERTIES SKIP_REGULAR_EXPRESSION "xarray not imported" + PROPERTIES + SKIP_REGULAR_EXPRESSION + "xarray not imported" ) itk_python_add_test( NAME PythonImreadSingleFileListTest