Skip to content

ci: install conda with setup-miniconda in the Linux conda jobs - #298

Merged
antonwolfy merged 2 commits into
mainfrom
ci/setup-miniconda-linux
Oct 29, 2026
Merged

antonwolfy merged 2 commits into
mainfrom
ci/setup-miniconda-linux

Conversation

@jharlow-intel

@jharlow-intel jharlow-intel commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator

ubuntu-latest moved from Ubuntu 24.04 to 26.04 around 25 October, and the 26.04 image no longer ships Miniconda. $CONDA is unset, so "Add conda to system path" adds /bin, and the Linux build and test jobs in conda-package.yml and conda-package-cf.yml fail with conda: command not found (Conda package, Conda package using conda-forge). The same image change removed apt-key, which #297 fixes. Same change as IntelPython/mkl_random#207.

  • The four Linux jobs now install Miniforge with conda-incubator/setup-miniconda, as the Windows jobs already do. It adds condabin to PATH, exports $CONDA and sets always_yes, so the existing conda steps run unchanged.
  • In test_linux, setup-miniconda runs right after the artifact download. "Update conda", "Install conda-index" and the two listing steps used to run before conda was added to PATH, which worked only because the old image already had it there.
  • setup-miniconda rewrites ~/.condarc when it starts, so the separate "Set pkgs_dirs" steps would be lost; pkgs-dirs: ~/.conda/pkgs keeps the cached package directory instead.

pre-commit passes on both files, and zizmor reports the same findings as on main.

ubuntu-latest is now Ubuntu 26.04, whose image no longer ships Miniconda,
so $CONDA is unset and the Linux build and test jobs failed with
'conda: command not found'. Use setup-miniconda, as the Windows jobs
already do, and pass the cached pkgs_dirs through its pkgs-dirs input
(it rewrites ~/.condarc). Same as IntelPython/mkl_random#207.
The test jobs update conda and install conda-index before they used to add
conda to PATH, which worked only while the runner image put conda on PATH.
@antonwolfy antonwolfy added this to the 0.7.0 release milestone Oct 29, 2026

@antonwolfy antonwolfy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @jharlow-intel

@antonwolfy
antonwolfy merged commit 4796ea5 into main Oct 29, 2026
141 of 153 checks passed
@antonwolfy
antonwolfy deleted the ci/setup-miniconda-linux branch October 29, 2026 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants