Skip to content

Commit 11b6d74

Browse files
authored
Merge pull request #129 from DiamondLightSource/micromamba-github-action
Use micromamba github action in IRIS CI workflow
2 parents 9ca4b4c + f58d18b commit 11b6d74

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

.github/workflows/tests_run.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
build-linux:
1313
runs-on: iris-gpu
1414
container:
15-
image: nvidia/cuda:11.6.2-devel-ubi8
15+
image: nvidia/cuda:11.6.2-base-ubi8
1616
env:
1717
NVIDIA_VISIBLE_DEVICES: ${{ env.NVIDIA_VISIBLE_DEVICES }}
1818

@@ -28,19 +28,18 @@ jobs:
2828
fetch-depth: 0
2929

3030
- name: Create conda environment
31-
uses: conda-incubator/setup-miniconda@v2
31+
uses: mamba-org/setup-micromamba@v1
3232
with:
33-
miniconda-version: latest
34-
channels: conda-forge,httomo,defaults,astra-toolbox,anaconda,rapidsai
35-
auto-activate-base: false
36-
activate-environment: httomolibgpu
37-
environment-file: conda/environment.yml
33+
environment-file: conda/environment.yml
34+
environment-name: httomo
35+
post-cleanup: 'all'
36+
init-shell: bash
3837

3938
- name: Install httomolibgpu
4039
run: |
41-
$CONDA/bin/conda run -n httomolibgpu pip install .[dev]
42-
$CONDA/bin/conda list
40+
pip install .[dev]
41+
micromamba list
4342
4443
- name: Run tests
4544
run: |
46-
$CONDA/bin/conda run -n httomolibgpu pytest tests/
45+
pytest tests/

0 commit comments

Comments
 (0)