Skip to content

Make venv CI independent of the runner Conda environment - #26290

Open
Eduardo Villalpando Mello (edvilme) with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-conda-environment-reliance
Open

Eduardo Villalpando Mello (edvilme) with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-conda-environment-reliance

Conversation

Copilot AI commented Nov 12, 2026 •

Copy link
Copy Markdown

Venv CI jobs assumed the hosted runner exposed $Env:CONDA, causing setup to fail before tests when the variable was unset.

  • Conda setup

    • Install Conda with a commit-pinned setup-miniconda action.
    • Preserve the matrix-selected Python by disabling environment activation.
  • Path discovery

    • Resolve the first Conda executable on PATH.
    • Derive the base installation with conda info --base.
    • Record valid condaExecPath and condaPath values in envPaths.json.
  • Diagnostics

    • Report explicit errors when Conda or its base Python cannot be found.
$condaCommand = Get-Command conda -CommandType Application |
    Select-Object -First 1
$condaBasePath = & $condaCommand.Source info --base

Co-authored-by: edvilme <5952839+edvilme@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix CI venv jobs to not rely on hosted runner's CONDA variable Make venv CI independent of the runner Conda environment Nov 13, 2026
@edvilme Eduardo Villalpando Mello (edvilme) added the debt Code quality issues label Nov 13, 2026
@edvilme
Eduardo Villalpando Mello (edvilme) marked this pull request as ready for review November 13, 2026 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

debt Code quality issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI venv jobs should not rely on the hosted runner's CONDA environment variable

2 participants