Skip to content

Commit

Permalink
fix: use setup-miniconda in test-install workflow
Browse files Browse the repository at this point in the history
Installation of mamba resulted in irresolvable conflict.
This is fixed by switching to installing only the libmamba-solver and
sticking with conda.

Also, it appears conda-incubator/setup-miniconda is more up to date (last
release 12/2022) than s-weigand/setup-conda (last release 05/2022), so
we switch to that.
  • Loading branch information
ltalirz committed Jan 27, 2023
1 parent c1d99df commit 1377f68
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 1377f68

Please sign in to comment.