Skip to content
Draft
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
2 changes: 1 addition & 1 deletion .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ jobs:
- name: "nox cache"
uses: ./.github/workflows/composite/nox-cache
with:
cache_build: 6
cache_build: 1
env_name: ${{ env.ENV_NAME }}
lock_file: ${{ env.LOCK_FILE }}

Expand Down
9 changes: 9 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@ def cache_cartopy(session: nox.sessions.Session) -> None:
)


MPL_URL_3V11RC0 = (
"https://files.pythonhosted.org/packages/b2/d1/"
"6a9ba3c934b6d272c894db9ea80257527be9a962b18d4b98b2323104b86b/"
"matplotlib-3.11.0rc1.tar.gz"
)


def prepare_venv(session: nox.sessions.Session) -> None:
"""Create and cache the nox session conda environment.

Expand Down Expand Up @@ -135,6 +142,7 @@ def prepare_venv(session: nox.sessions.Session) -> None:
# populate the environment from the lockfile
logger.debug(f"Populating conda env at {venv_dir}")
session.conda_install("--file", str(lockfile))
session.install(MPL_URL_3V11RC0)
cache_venv(session)

elif venv_changed(session):
Expand All @@ -144,6 +152,7 @@ def prepare_venv(session: nox.sessions.Session) -> None:
session.virtualenv.reuse_existing = False
session.virtualenv.create()
session.conda_install("--file", str(lockfile))
session.install(MPL_URL_3V11RC0)
session.virtualenv.reuse_existing = _re_orig
cache_venv(session)

Expand Down
Loading