@@ -35,18 +35,18 @@ jobs:
3535 fail-fast : false
3636 matrix :
3737 os : ["ubuntu-latest"]
38- python-version : ["3.11 "]
39- session : ["doctest ", "gallery ", "linkcheck "]
38+ python-version : ["311 "]
39+ session : ["docs-tests ", "docs-linkcheck ", "gallery_tests "]
4040 include :
4141 - os : " ubuntu-latest"
42- python-version : " 3.11 "
42+ python-version : " 311 "
4343 session : " tests"
44- coverage : " --coverage "
44+ posargs : " --cov=lib/iris --cov-report=xml "
4545 - os : " ubuntu-latest"
46- python-version : " 3.10 "
46+ python-version : " 310 "
4747 session : " tests"
4848 - os : " ubuntu-latest"
49- python-version : " 3.9 "
49+ python-version : " 39 "
5050 session : " tests"
5151
5252 env :
6363 CACHE_WEEKS : 2
6464 run : |
6565 echo "CACHE_PERIOD=$(date +%Y).$(expr $(date +%U) / ${CACHE_WEEKS})" >> ${GITHUB_ENV}
66- echo "LOCK_FILE=requirements/locks/py$(echo ${{ matrix.python-version }} | tr -d '.' )-linux-64.lock" >> ${GITHUB_ENV}
66+ echo "LOCK_FILE=requirements/locks/py$(echo ${{ matrix.python-version }})-linux-64.lock" >> ${GITHUB_ENV}
6767
6868 - name : " data cache"
6969 uses : ./.github/workflows/composite/iris-data-cache
@@ -91,10 +91,10 @@ jobs:
9191 - name : " conda environment cache"
9292 uses : ./.github/workflows/composite/conda-env-cache
9393 with :
94- cache_build : 0
94+ cache_build : 1
9595 cache_period : ${{ env.CACHE_PERIOD }}
9696 env_name : ${{ env.ENV_NAME }}
97- install_packages : " cartopy nox pip "
97+ install_packages : " cartopy tox'<4' "
9898
9999 - name : " conda info"
100100 run : |
@@ -108,8 +108,8 @@ jobs:
108108 cache_period : ${{ env.CACHE_PERIOD }}
109109 env_name : ${{ env.ENV_NAME }}
110110
111- - name : " nox cache"
112- uses : ./.github/workflows/composite/nox -cache
111+ - name : " tox cache"
112+ uses : ./.github/workflows/composite/tox -cache
113113 with :
114114 cache_build : 2
115115 env_name : ${{ env.ENV_NAME }}
@@ -134,11 +134,9 @@ jobs:
134134 cat ${MPL_RC}
135135
136136 - name : " iris ${{ matrix.session }}"
137- env :
138- PY_VER : ${{ matrix.python-version }}
139137 run : |
140- nox --session ${{ matrix.session }} -- --verbose ${{ matrix.coverage }}
138+ tox -e py${{ matrix.python-version }}- ${{ matrix.session }} -- ${{ matrix.posargs }}
141139
142140 - name : Upload coverage report
143141 uses : codecov/codecov-action@v3
144- if : ${{ matrix.coverage }}
142+ if : contains( ${{ matrix.posargs }}, "--cov=lib/iris --cov-report=xml")
0 commit comments