Skip to content

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

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

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

Conversation

@jharlow-intel

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 every Linux build and test job in conda-package.yml and conda-package-cf.yml fails with conda: command not found (Conda package, Conda package using conda-forge). The same image change removed apt-key, which #206 fixes.

  • The four Linux jobs now install Miniforge with conda-incubator/setup-miniconda, as the Windows and macOS jobs already do. It adds condabin to PATH, exports $CONDA and sets always_yes, so the existing conda steps run unchanged.
  • 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.
  • CONDA_BLD in conda-package.yml and the artifact path in conda-package-cf.yml pointed at the old image's /usr/share/miniconda; both now come from $CONDA.

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

ubuntu-latest is now Ubuntu 26.04, whose image no longer ships Miniconda,
so $CONDA is unset and every Linux build and test job failed with
'conda: command not found'. Use setup-miniconda, as the Windows and macOS
jobs already do, pass the cached pkgs_dirs through its pkgs-dirs input
(it rewrites ~/.condarc), and take the conda-bld paths from $CONDA.

@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 2691015 into master Oct 29, 2026
182 of 191 checks passed
@antonwolfy
antonwolfy deleted the ci/setup-miniconda-linux branch October 29, 2026 12:02
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