diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index 844f2e00b0..9bae5085b3 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -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 }} diff --git a/noxfile.py b/noxfile.py index 4d733fa2d4..478a4b8c78 100644 --- a/noxfile.py +++ b/noxfile.py @@ -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. @@ -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): @@ -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)