Skip to content

ci: fix conda release upload command#4

Merged
Luohaothu merged 1 commit intomasterfrom
codex/fix-conda-release-upload
Feb 16, 2026
Merged

ci: fix conda release upload command#4
Luohaothu merged 1 commit intomasterfrom
codex/fix-conda-release-upload

Conversation

@Luohaothu
Copy link
Collaborator

@Luohaothu Luohaothu commented Feb 16, 2026

Summary

  • run through in release workflow
  • fix release job failure where
    Usage: anaconda [OPTIONS] COMMAND [ARGS]...

Welcome to the Anaconda CLI!

╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --verbose -v Print debug information to the console. │
│ --version -V Show version and exit. │
│ --help -h Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Plugins ────────────────────────────────────────────────────────────────────╮
│ auth anaconda.com auth commands │
│ cloud anaconda.com auth commands │
│ token Manage your Anaconda repo tokens. │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Authentication ─────────────────────────────────────────────────────────────╮
│ login Sign into Anaconda services │
│ logout Sign out from Anaconda services │
│ whoami Display account information │
╰──────────────────────────────────────────────────────────────────────────────╯ command is not found in active env

Test

  • monitor workflow in PR

Summary by CodeRabbit

  • Chores
    • Updated the conda release workflow to execute the Anaconda upload command within a conda environment, improving consistency and reliability of the release process.

@gemini-code-assist
Copy link

Note

Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported.

@coderabbitai
Copy link

coderabbitai bot commented Feb 16, 2026

📝 Walkthrough

Walkthrough

The GitHub Actions workflow for conda release is modified to wrap the anaconda upload command within a conda run -n base environment. The underlying command execution and error handling logic remain unchanged; only the invocation method is updated.

Changes

Cohort / File(s) Summary
GitHub Actions Workflow
.github/workflows/conda-release.yml
Wraps the direct anaconda upload command invocation with conda run -n base to execute it within the base conda environment context.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 With conda's run so neat and tidy,
Our packages fly up, not naughty or biased,
One line out, one line in with grace,
The base environment's now the perfect place! 🚀

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: fixing the conda release upload command by wrapping it with conda run -n base.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Merge Conflict Detection ✅ Passed ✅ No merge conflicts detected when merging into master

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch codex/fix-conda-release-upload

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
.github/workflows/conda-release.yml (1)

47-60: Consider applying conda run -n base to conda build steps for consistency.

The conda build and conda build --test steps also rely on conda-build installed in the base environment. These likely work today because conda build is a conda subcommand (discoverable regardless of active env), unlike the standalone anaconda CLI. However, wrapping them with conda run -n base would make the dependency on the base environment explicit and guard against future breakage.

This is just a consistency suggestion — not blocking.

@Luohaothu Luohaothu merged commit 193978e into master Feb 16, 2026
3 checks passed
@Luohaothu Luohaothu deleted the codex/fix-conda-release-upload branch February 16, 2026 01:47
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.

1 participant