Repository navigation
Conversation
setup-miniconda v4 warns on every run: `auto-activate-base` is deprecated. Please use `auto-activate`. Rename the input in ci.yml, cache.yml and publish.yml. The value stays true, and the installer's default environment is base, so the second half of the warning (add `activate-environment: base`) does not apply; each job still activates the quantecon environment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Wyb6EzbNzY5a8uuJPnDtUb
There was a problem hiding this comment.
🟢 Approval recommended
The rename matches the valid auto-activate input in the action's verified action.yml, is applied consistently across all three workflows, and preserves existing behavior.
0 open findings
What changed in this PR
This PR silences a deprecation warning emitted by conda-incubator/setup-miniconda@v4 by renaming the auto-activate-base input to auto-activate across the repository's GitHub Actions workflows. The value is kept as true, preserving existing behavior. I confirmed against the action's action.yml (at both refs/tags/v4 and main) that auto-activate is a valid input defaulting to "true", and that auto-activate-base is explicitly marked "(deprecated in favor of auto-activate)". Each job still sets activate-environment: quantecon, so the warning's secondary condition does not apply, and no stale auto-activate-base references remain.
Changes:
- Renamed
auto-activate-base: truetoauto-activate: truein three workflow files. - Behavior preserved (value remains
true;activate-environment: quanteconunchanged).
| File | Description |
|---|---|
.github/workflows/ci.yml |
Uses the non-deprecated auto-activate input in the CI conda setup. |
.github/workflows/cache.yml |
Uses the non-deprecated auto-activate input in the cache conda setup. |
.github/workflows/publish.yml |
Uses the non-deprecated auto-activate input in the publish conda setup. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
With
conda-incubator/setup-miniconda@v4, every job that sets up conda logs this warning:This renames the input in
ci.yml,cache.ymlandpublish.yml. The value staystrue.The second half of the warning doesn't apply. The Miniconda installer's default environment is
base, and each job still activates thequanteconenvironment throughactivate-environment.This is the same change as QuantEcon/lecture-python-programming.zh-cn#109, whose build ran without the warning, and the matching PR in QuantEcon/lecture-python-programming.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Wyb6EzbNzY5a8uuJPnDtUb
Generated by Claude Code