From 81e21ff9b55c2cb5009b3654e8b201410b98ed90 Mon Sep 17 00:00:00 2001 From: Erik Welch Date: Thu, 12 Nov 2026 14:36:34 -0600 Subject: [PATCH] Install CI's packages from the configured channels, without -c nodefaults In an environment file, nodefaults is a keyword that drops the defaults channel. On the command line it is an ordinary channel name, and anaconda.org has a channel called nodefaults (empty for now), so `conda install -c nodefaults` searched it first, ahead of conda-forge, with strict channel priority: a package uploaded there would be what CI installed. setup-miniconda already makes conda-forge the only channel (conda-forge and defaults for PyPy), and the install now uses those. --- .github/workflows/test_and_build.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_and_build.yml b/.github/workflows/test_and_build.yml index dadb23e36..ecd82e2ab 100644 --- a/.github/workflows/test_and_build.yml +++ b/.github/workflows/test_and_build.yml @@ -272,7 +272,10 @@ jobs: else interpreter="python=$PYVER python-gil" fi - $(command -v mamba || command -v conda) install -c nodefaults \ + # No -c: the channels are the ones setup-miniconda configured. On the command + # line, nodefaults is not the environment-file keyword but a channel on + # anaconda.org, which -c would put first. + $(command -v mamba || command -v conda) install \ packaging pip pytest coverage pytest-randomly cffi donfig tomli c-compiler make \ pyyaml${yamlver} ${sparse} pandas${pdver} scipy${spver} numpy${npver} ${awkward} \ networkx${nxver} ${numba} ${psg} \