Skip to content

Commit

Permalink
Pin micromamba version (#207)
Browse files Browse the repository at this point in the history
### What kind of change does this PR introduce?

* Pins the micromamba binary version.

### Does this PR introduce a breaking change?

No.

### Other information:

mamba-org/setup-micromamba#225
  • Loading branch information
Zeitsperre authored Oct 1, 2024
2 parents b91aa32 + 3795f32 commit c595e15
Showing 1 changed file with 11 additions and 20 deletions.
31 changes: 11 additions & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,18 +110,17 @@ jobs:
uses: mamba-org/setup-micromamba@f8b8a1e23a26f60a44c853292711bacfd3eac822 # v1.9.0
with:
cache-downloads: true
cache-environment: false
environment-file: environment-dev.yml
create-args: >-
python=${{ matrix.python-version }}
- name: Conda and Mamba versions
run: |
echo "micromamba $(micromamba --version)"
micromamba-version: "1.5.10-0" # pinned to avoid the breaking changes with mamba and micromamba (2.0.0).
- name: Install xHydro
run: |
python -m pip install --no-deps .
- name: Check versions
run: |
conda list
micromamba list
echo ESMF_VERSION=$(cat $ESMFMKFILE | grep "ESMF_VERSION_STRING=" | awk -F= '{print $2}' | tr -d "'")
python -m pip check || true
- name: Test with pytest
Expand Down Expand Up @@ -172,22 +171,18 @@ jobs:
uses: mamba-org/setup-micromamba@f8b8a1e23a26f60a44c853292711bacfd3eac822 # v1.9.0
with:
cache-downloads: true
cache-environment: true
cache-environment: false
environment-file: environment-dev.yml
create-args: >-
mamba
python=${{ matrix.python-version }}
lmoments3
- name: Conda and Mamba versions
run: |
mamba --version
echo "micromamba $(micromamba --version)"
python=${{ matrix.python-version }}
micromamba-version: "1.5.10-0" # pinned to avoid the breaking changes with mamba and micromamba (2.0.0).
- name: Install xHydro
run: |
python -m pip install --no-deps .
- name: Check versions
run: |
conda list
micromamba list
echo ESMF_VERSION=$(cat $ESMFMKFILE | grep "ESMF_VERSION_STRING=" | awk -F= '{print $2}' | tr -d "'")
python -m pip check || true
- name: Test with pytest
Expand Down Expand Up @@ -243,22 +238,18 @@ jobs:
uses: mamba-org/setup-micromamba@v1
with:
cache-downloads: true
cache-environment: true
cache-environment: false
environment-file: environment-dev.yml
create-args: >-
mamba
python=${{ matrix.python-version }}
lmoments3
- name: Conda and Mamba versions
run: |
mamba --version
echo "micromamba $(micromamba --version)"
python=${{ matrix.python-version }}
micromamba-version: "1.5.10-0" # pinned to avoid the breaking changes with mamba and micromamba (2.0.0).
- name: Install xHydro
run: |
python -m pip install --no-deps .
- name: Check versions
run: |
conda list
micromamba list
echo ESMF_VERSION=$(cat $ESMFMKFILE | grep "ESMF_VERSION_STRING=" | awk -F= '{print $2}' | tr -d "'")
python -m pip check || true
- name: Test Notebooks
Expand Down

0 comments on commit c595e15

Please sign in to comment.