Skip to content

Commit

Permalink
Merge pull request conda#720 from maresb/revert-micromamba-v2-workaro…
Browse files Browse the repository at this point in the history
…unds

Unpin micromamba<2 in CI
  • Loading branch information
maresb authored Feb 3, 2025
2 parents 15841fc + ff485cc commit 82d1c4a
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 10 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ concurrency:
cancel-in-progress: true

env:
MICROMAMBA_VERSION: 'latest'
MICROMAMBA_VERSION: '2.0.6.rc1-0'

defaults:
run:
Expand Down Expand Up @@ -77,13 +77,21 @@ jobs:
os: [ ubuntu-latest, macos-latest, windows-latest ]
python-version: [ "3.8" ]
steps:
- name: Set Conda platform
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
echo "CONDA_PLATFORM=linux-64" >> $GITHUB_ENV
elif [ "$RUNNER_OS" == "macOS" ]; then
echo "CONDA_PLATFORM=osx-arm64" >> $GITHUB_ENV
elif [ "$RUNNER_OS" == "Windows" ]; then
echo "CONDA_PLATFORM=win-64" >> $GITHUB_ENV
fi
- name: Verify Conda platform
run: echo "Conda platform is $CONDA_PLATFORM"
- name: Install Conda environment with Micromamba
uses: mamba-org/setup-micromamba@v2
with:
# # Temporarily pin the version due to
# # <https://github.com/mamba-org/mamba/issues/3467>
# micromamba-version: ${{ env.MICROMAMBA_VERSION }}
micromamba-version: 1.5.10-0
micromamba-url: https://github.com/mamba-org/micromamba-releases/releases/download/${{ env.MICROMAMBA_VERSION }}/micromamba-${{ env.CONDA_PLATFORM }}
init-shell: bash
- name: Download lockfiles
uses: actions/download-artifact@v4
Expand Down
19 changes: 14 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ concurrency:
cancel-in-progress: true

env:
# # Temporarily pin the version due to
# # <https://github.com/mamba-org/mamba/issues/3467>
# MICROMAMBA_VERSION: 'latest'
MICROMAMBA_VERSION: '1.5.10-0'
MICROMAMBA_VERSION: '2.0.6.rc1-0'

jobs:
test:
Expand Down Expand Up @@ -91,9 +88,21 @@ jobs:
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4

- name: Set Conda platform
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
echo "CONDA_PLATFORM=linux-64" >> $GITHUB_ENV
elif [ "$RUNNER_OS" == "macOS" ]; then
echo "CONDA_PLATFORM=osx-arm64" >> $GITHUB_ENV
elif [ "$RUNNER_OS" == "Windows" ]; then
echo "CONDA_PLATFORM=win-64" >> $GITHUB_ENV
fi
- name: Verify Conda platform
run: echo "Conda platform is $CONDA_PLATFORM"

- uses: mamba-org/setup-micromamba@v2
with:
micromamba-version: ${{ env.MICROMAMBA_VERSION }}
micromamba-url: https://github.com/mamba-org/micromamba-releases/releases/download/${{ env.MICROMAMBA_VERSION }}/micromamba-${{ env.CONDA_PLATFORM }}
environment-file: environments/conda-lock.yml
environment-name: conda-lock-dev
init-shell: bash
Expand Down
1 change: 1 addition & 0 deletions tests/test_conda_lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -2673,6 +2673,7 @@ def test_fake_conda_env(conda_exe: str, conda_lock_yaml: Path):
conda_exe,
"list",
"--debug",
"--no-pip",
"-p",
prefix,
"--json",
Expand Down

0 comments on commit 82d1c4a

Please sign in to comment.