Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 1 addition & 21 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ container:
env:
# Skip specific tasks by name. Set to a non-empty string to skip.
SKIP_LINT_TASK: ""
SKIP_TEST_MINIMAL_TASK: ""
SKIP_TEST_MINIMAL_TASK: "1"
SKIP_TEST_FULL_TASK: ""
SKIP_GALLERY_TASK: ""
SKIP_DOCTEST_TASK: ""
SKIP_LINKCHECK_TASK: ""
# Skip task groups by type. Set to a non-empty string to skip.
Expand Down Expand Up @@ -176,25 +175,6 @@ test_full_task:
- nox --session tests -- --verbose


#
# Testing Documentation Gallery (Linux)
#
gallery_task:
only_if: ${SKIP_GALLERY_TASK} == "" && ${SKIP_ALL_DOC_TASKS} == ""
<< : *CREDITS_TEMPLATE
env:
PY_VER: 3.8
name: "${CIRRUS_OS}: py${PY_VER} doc tests (gallery)"
<< : *IRIS_TEST_DATA_TEMPLATE
<< : *LINUX_TASK_TEMPLATE
tests_script:
- export CONDA_OVERRIDE_LINUX="$(uname -r | cut -d'+' -f1)"
- echo "[Resources]" > ${SITE_CFG}
- echo "test_data_dir = ${IRIS_TEST_DATA_DIR}/test_data" >> ${SITE_CFG}
- echo "doc_dir = ${CIRRUS_WORKING_DIR}/docs" >> ${SITE_CFG}
- nox --session gallery -- --verbose


#
# Testing Documentation (Linux)
#
Expand Down
4 changes: 4 additions & 0 deletions docs/src/whatsnew/latest.rst
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ This document explains the changes made to Iris for this release

#. `@bjlittle`_ refactored ``setup.py`` into ``setup.cfg``. (:pull:`4168`)

#. `@bjlittle`_ rationalised the `cirrus-ci`_ tasks by combining the gallery
and doc-test tasks, and disabling the minimal tests in favour for the
full tests. (:pull:`4179`)

.. comment
Whatsnew author names (@github name) in alphabetical order. Note that,
core dev names are automatically included by the common_links.inc:
Expand Down
19 changes: 2 additions & 17 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,9 @@ def tests(session: nox.sessions.Session):


@nox.session(python=PY_VER, venv_backend="conda")
def gallery(session: nox.sessions.Session):
def doctest(session: nox.sessions.Session):
"""
Perform iris gallery doc-tests.
Perform iris gallery and doc-tests.

Parameters
----------
Expand All @@ -238,21 +238,6 @@ def gallery(session: nox.sessions.Session):
"iris.tests.runner",
"--gallery-tests",
)


@nox.session(python=PY_VER, venv_backend="conda")
def doctest(session: nox.sessions.Session):
"""
Perform iris doc-tests.

Parameters
----------
session: object
A `nox.sessions.Session` object.

"""
prepare_venv(session)
session.install("--no-deps", "--editable", ".")
session.cd("docs")
session.run(
"make",
Expand Down