Skip to content

ci: install pip in the conda test env so CI can bootstrap - #49

Merged
shimwell merged 1 commit into
fusion-energy:mainfrom
steps-re:ci/fix-miniconda-pip
Jul 10, 2026
Merged

ci: install pip in the conda test env so CI can bootstrap#49
shimwell merged 1 commit into
fusion-energy:mainfrom
steps-re:ci/fix-miniconda-pip

Conversation

@steps-re

Copy link
Copy Markdown
Contributor

Problem

CI (.github/workflows/ci_with_install.yml, job "CI") is currently broken on every PR and on main, independent of any code change. The last successful run was ~March 2026.

The workflow creates a test conda env via conda-incubator/setup-miniconda@v3, then runs:

python -m pip install --upgrade pip

This fails with:

/usr/share/miniconda/envs/test/bin/python: No module named pip

The env conda creates no longer has pip preinstalled (conda-forge/base-env drift over the gap since the last green run — this isn't something a PR's code changes can fix). See a recent failing run: run 28944887256, step "install package".

Fix

Minimal, single-line change: add pip to the existing conda install step so it's guaranteed present before the pip-based install step runs.

- run: conda install -c conda-forge openmc -y
+ run: conda install -c conda-forge openmc pip -y

This doesn't touch anything else in the workflow, matrix, or test config.

Why this unblocks other PRs

Since this failure is repo-wide and unrelated to code content, it's currently blocking every open PR from getting a passing CI check, including #48. This PR only touches the CI workflow so it can be reviewed and merged independently of any code PR.

The `test` conda env created by conda-incubator/setup-miniconda no
longer has pip preinstalled (conda-forge/base-env drift since the
last green run in March 2026). The "install package" step then fails
immediately on `python -m pip install --upgrade pip` with:

  /usr/share/miniconda/envs/test/bin/python: No module named pip

This breaks CI repo-wide, independent of any code change, blocking
every open PR. Add `pip` to the existing `conda install` step so it
is guaranteed to be present in the env before pip is invoked.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@shimwell
shimwell merged commit 9a13607 into fusion-energy:main Jul 10, 2026
1 check passed
@shimwell

Copy link
Copy Markdown
Member

many thanks

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