Skip to content

Commit 6da1333

Browse files
committed
Devops: Fix the test-install.yml workflow
A few fixes were needed: * Increase timeout for `install-with-pip` and `install-with-conda` jobs These were taking a longer time. The problem for conda on Python 3.8 is a known problem * Switch to mamba: The build using conda was failing because it was running out of memory. Mamba should be faster and use less memory. * The switch to mamba required a workaround to delete any existing JSON files in `/usr/share/miniconda/pkgs/cache`. This seems a known problem: mamba-org/mamba#488
1 parent 1fc03bc commit 6da1333

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/test-install.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898

9999
if: github.repository == 'aiidateam/aiida-core'
100100
runs-on: ubuntu-latest
101-
timeout-minutes: 5
101+
timeout-minutes: 15
102102

103103
strategy:
104104
fail-fast: false
@@ -132,7 +132,7 @@ jobs:
132132

133133
if: github.repository == 'aiidateam/aiida-core'
134134
runs-on: ubuntu-latest
135-
timeout-minutes: 5
135+
timeout-minutes: 25
136136

137137
strategy:
138138
fail-fast: false
@@ -158,13 +158,21 @@ jobs:
158158
with:
159159
conda-channels: conda-forge
160160

161+
- run: conda update conda
161162
- run: conda --version
162163

164+
# Use mamba because conda is running out of memory
165+
- run: conda install mamba -n base -c conda-forge
166+
- run: mamba --version
167+
168+
# Temporary workaround: https://github.com/mamba-org/mamba/issues/488
169+
- run: rm /usr/share/miniconda/pkgs/cache/*.json
170+
163171
- name: Test installation
164172
id: test_installation
165173
continue-on-error: ${{ matrix.optional }}
166174
run: >
167-
conda create --dry-run -n test-install aiida-core
175+
mamba create --dry-run -n test-install aiida-core
168176
${{ matrix.python-version && format('python={0}', matrix.python-version) }}
169177
170178
- name: Warn about failure

0 commit comments

Comments
 (0)