Skip to content

Commit

Permalink
Pin micromamba version in GitHub Actions workflows
Browse files Browse the repository at this point in the history
Pin version of micromamba to `1.5.10-0` in GitHub Actions workflows
because of following issue:
mamba-org/setup-micromamba#225

GitHub: fix #1424
  • Loading branch information
fabcor-maxiv authored and marcus-oscarsson committed Sep 27, 2024
1 parent 033102b commit f9bb4fd
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,14 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

# Pin micromamba version because of following issue:
# https://github.com/mamba-org/setup-micromamba/issues/225
- name: Set up Conda environment
uses: mamba-org/setup-micromamba@v1
with:
create-args: >-
python=${{ matrix.python-version }}
micromamba-version: "latest"
micromamba-version: 1.5.10-0
environment-file: conda-environment.yml
cache-environment: true
post-cleanup: "all"
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,13 @@ jobs:
fetch-depth: 0

# Use micromamba instead of conda for better performance
# Pin micromamba version because of following issue:
# https://github.com/mamba-org/setup-micromamba/issues/225
- name: "Setup conda environment with micromamba"
uses: "mamba-org/setup-micromamba@v1" # tested with v1.4.4
with:
environment-file: "conda-environment.yml"
micromamba-version: 1.5.10-0

- name: "Install dependencies with Poetry"
run: "${MAMBA_EXE} run --name mxcubeweb poetry install --only=docs,main"
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/ui.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
---
# yamllint disable rule:line-length


# Pin micromamba version to `1.5.10-0` because of following issue:
# https://github.com/mamba-org/setup-micromamba/issues/225

name: UI

"on":
Expand All @@ -22,7 +26,7 @@ jobs:
- name: Set up Conda environment
uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: "latest"
micromamba-version: 1.5.10-0
environment-file: conda-environment.yml
cache-environment: true
post-cleanup: "all"
Expand Down Expand Up @@ -56,7 +60,7 @@ jobs:
- name: Set up Conda environment
uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: "latest"
micromamba-version: 1.5.10-0
environment-file: conda-environment.yml
cache-environment: true
post-cleanup: "all"
Expand Down Expand Up @@ -107,7 +111,7 @@ jobs:
- name: Set up Conda environment
uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: "latest"
micromamba-version: 1.5.10-0
environment-file: conda-environment.yml
cache-environment: true
post-cleanup: "all"
Expand Down

0 comments on commit f9bb4fd

Please sign in to comment.