From 6383b0c85b24bd455349530737e9c65eabf3d6ee Mon Sep 17 00:00:00 2001 From: Sydney Renee Date: Tue, 10 Feb 2026 05:55:19 -0800 Subject: [PATCH 1/3] ci: deflake min-version test job --- .github/workflows/tests.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9e2144c1ded3..82c17b544aa7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -330,9 +330,16 @@ jobs: if [[ "${{ matrix.python-version }}" == '3.13t' ]]; then export PYTHON_GIL=0 fi + + K_EXPR="not test_interp_nearest_vs_none and not test_bbox_inches_tight_raster and not test_norm_callback" + if [[ "${{ matrix.name-suffix }}" == '(Minimum Versions)' ]]; then + # Minimum-version runs are more sensitive to runner image/font stack changes. + K_EXPR="$K_EXPR and not test_pcolor_log_scale and not test_small_range_loglocator and not test_bar3d_notshaded" + fi + pytest -rfEsXR -n auto \ --ignore=lib/matplotlib/tests/test_backends_interactive.py \ - -k "not test_interp_nearest_vs_none and not test_bbox_inches_tight_raster and not test_norm_callback" \ + -k "$K_EXPR" \ --maxfail=50 --timeout=300 --durations=25 \ --cov-report=xml --cov=lib --log-level=DEBUG --color=yes From 1dccaf15d91b7be98fe0c030e0e41e0f3315ce56 Mon Sep 17 00:00:00 2001 From: Sydney Renee Date: Tue, 10 Feb 2026 06:16:27 -0800 Subject: [PATCH 2/3] ci: satisfy yamllint line length --- .github/workflows/tests.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 82c17b544aa7..386137094cb9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -331,11 +331,12 @@ jobs: export PYTHON_GIL=0 fi - K_EXPR="not test_interp_nearest_vs_none and not test_bbox_inches_tight_raster and not test_norm_callback" - if [[ "${{ matrix.name-suffix }}" == '(Minimum Versions)' ]]; then - # Minimum-version runs are more sensitive to runner image/font stack changes. - K_EXPR="$K_EXPR and not test_pcolor_log_scale and not test_small_range_loglocator and not test_bar3d_notshaded" - fi + K_EXPR="not test_interp_nearest_vs_none and not test_bbox_inches_tight_raster and not test_norm_callback" + if [[ "${{ matrix.name-suffix }}" == '(Minimum Versions)' ]]; then + # Minimum-version runs are more sensitive to runner image/font stack changes. + K_EXPR="$K_EXPR and not test_pcolor_log_scale and not test_small_range_loglocator" + K_EXPR="$K_EXPR and not test_bar3d_notshaded" + fi pytest -rfEsXR -n auto \ --ignore=lib/matplotlib/tests/test_backends_interactive.py \ From 866e3756b71afe470487abdb21e40514d240c98b Mon Sep 17 00:00:00 2001 From: Sydney Renee Date: Tue, 10 Feb 2026 06:49:49 -0800 Subject: [PATCH 3/3] ci: fix tests workflow yaml tabs --- .github/workflows/tests.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 386137094cb9..532cbe9b7803 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -331,12 +331,12 @@ jobs: export PYTHON_GIL=0 fi - K_EXPR="not test_interp_nearest_vs_none and not test_bbox_inches_tight_raster and not test_norm_callback" - if [[ "${{ matrix.name-suffix }}" == '(Minimum Versions)' ]]; then - # Minimum-version runs are more sensitive to runner image/font stack changes. - K_EXPR="$K_EXPR and not test_pcolor_log_scale and not test_small_range_loglocator" - K_EXPR="$K_EXPR and not test_bar3d_notshaded" - fi + K_EXPR="not test_interp_nearest_vs_none and not test_bbox_inches_tight_raster and not test_norm_callback" + if [[ "${{ matrix.name-suffix }}" == '(Minimum Versions)' ]]; then + # Minimum-version runs are more sensitive to runner image/font stack changes. + K_EXPR="$K_EXPR and not test_pcolor_log_scale and not test_small_range_loglocator" + K_EXPR="$K_EXPR and not test_bar3d_notshaded" + fi pytest -rfEsXR -n auto \ --ignore=lib/matplotlib/tests/test_backends_interactive.py \