Skip to content

Commit

Permalink
DevOps: Fix the test-install workflow (aiidateam#5873)
Browse files Browse the repository at this point in the history
Recently the `test-install` workflow started failing because `mamba` can
no longer be installed. The replacement of `conda` with `mamba` was
introduced in 6da1333 because `conda`
was running out of memory.

The `s-weigand/setup-conda` action is replaced with the more up-to-date
`conda-incubator/setup-miniconda` action. Instead of installing `mamba`
we install `conda` to work-around the current problem. To prevent the
out-of-memory error, we still use the mamba solvers through

    conda install -n base conda-libmamba-solver
    conda config --set solver libmamba
  • Loading branch information
ltalirz authored Jan 27, 2023
1 parent c1d99df commit 9898b47
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/test-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ jobs:
- uses: actions/checkout@v2

- name: Setup Conda
uses: s-weigand/setup-conda@v1
uses: conda-incubator/setup-miniconda@v2
with:
conda-channels: conda-forge
channels: conda-forge

- run: conda --version

Expand Down Expand Up @@ -156,16 +156,15 @@ jobs:
- uses: actions/checkout@v2

- name: Setup Conda
uses: s-weigand/setup-conda@v1
uses: conda-incubator/setup-miniconda@v2
with:
conda-channels: conda-forge

- run: conda update conda
- run: conda --version
channels: conda-forge

# Use mamba because conda is running out of memory
- run: conda install mamba -n base -c conda-forge
- run: mamba --version
# see https://github.com/conda-incubator/setup-miniconda/issues/274
- run: |
conda install -n base conda-libmamba-solver
conda config --set solver libmamba
# Temporary workaround: https://github.com/mamba-org/mamba/issues/488
- run: rm /usr/share/miniconda/pkgs/cache/*.json
Expand All @@ -174,7 +173,7 @@ jobs:
id: test_installation
continue-on-error: ${{ matrix.optional }}
run: >
mamba create --dry-run -n test-install aiida-core
conda create --dry-run -n test-install aiida-core
${{ matrix.python-version && format('python={0}', matrix.python-version) }}
- name: Warn about failure
Expand Down

0 comments on commit 9898b47

Please sign in to comment.