diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index 844f2e00b0..c64488b16a 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: 2 env_name: ${{ env.ENV_NAME }} lock_file: ${{ env.LOCK_FILE }} diff --git a/noxfile.py b/noxfile.py index 4d733fa2d4..ba66f46e0e 100644 --- a/noxfile.py +++ b/noxfile.py @@ -108,6 +108,17 @@ def cache_cartopy(session: nox.sessions.Session) -> None: ) +MPL_URL_RC = ( + # "https://files.pythonhosted.org/packages/b2/d1/" + # "6a9ba3c934b6d272c894db9ea80257527be9a962b18d4b98b2323104b86b/" + # "matplotlib-3.11.0rc1.tar.gz" + # + "https://files.pythonhosted.org/packages/42/b4/" + "41b4c812df4c89230465b71cc86217923f904349d803abf67119a471e0ad/" + "matplotlib-3.11.0rc2.tar.gz" +) + + def prepare_venv(session: nox.sessions.Session) -> None: """Create and cache the nox session conda environment. @@ -135,6 +146,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_RC) cache_venv(session) elif venv_changed(session): @@ -144,6 +156,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_RC) session.virtualenv.reuse_existing = _re_orig cache_venv(session)