|
27 | 27 | matrix: |
28 | 28 | session: ["tests", "doctests-docs", "doctests-api"] |
29 | 29 | python-version: ["3.10", "3.11", "3.12", "3.13"] |
| 30 | + |
| 31 | +# exclude: |
| 32 | +# - session: "doctests-docs" |
| 33 | +# python-version: "3.10" |
| 34 | +# - session: "doctests-docs" |
| 35 | +# python-version: "3.11" |
| 36 | +# - session: "doctests-docs" |
| 37 | +# python-version: "3.12" |
| 38 | +# - session: "doctests-api" |
| 39 | +# python-version: "3.10" |
| 40 | +# - session: "doctests-api" |
| 41 | +# python-version: "3.11" |
| 42 | +# - session: "doctests-api" |
| 43 | +# python-version: "3.12" |
| 44 | + |
30 | 45 | defaults: |
31 | 46 | run: |
32 | 47 | shell: bash -l {0} |
@@ -74,13 +89,13 @@ jobs: |
74 | 89 | OVERRIDE_TEST_DATA_REPOSITORY=${GITHUB_WORKSPACE}/iris_test_data_download/test_data PYTHONPATH=./tests:$PYTHONPATH pytest -v ./tests |
75 | 90 |
|
76 | 91 | - name: "Run doctests: Docs" |
77 | | - if: matrix.session == 'doctests-docs' |
| 92 | + if: (matrix.session == 'doctests-docs') && (matrix.python_version == "3.13") |
78 | 93 | run: | |
79 | 94 | cd docs |
80 | 95 | pytest --doctest-glob="*.rst" --doctest-continue-on-failure |
81 | 96 |
|
82 | 97 | - name: "Run doctests: API" |
83 | | - if: matrix.session == 'doctests-api' |
| 98 | + if: (matrix.session == 'doctests-api') && (matrix.python_version == "3.13") |
84 | 99 | run: | |
85 | 100 | cd lib |
86 | 101 | pytest --doctest-modules --doctest-continue-on-failure |
0 commit comments