Skip to content

Commit cc7d2dd

Browse files
Merge pull request #197 from DiamondLightSource/conda-channel-pruning
Remove default conda channels from CI
2 parents 8a06299 + 124d60b commit cc7d2dd

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

.github/workflows/httomolibgpu_doc_conda.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@ jobs:
2525
python-version: "3.10"
2626

2727
- name: httomolibgpu
28-
uses: conda-incubator/setup-miniconda@v2
28+
uses: mamba-org/setup-micromamba@v2
2929
with:
30-
auto-update-conda: false
31-
activate-environment: httomolibgpu
30+
environment-name: httomolibgpu
3231
environment-file: ./docs/source/doc-conda-requirements.yml
32+
post-cleanup: 'all'
33+
init-shell: bash
3334

3435
- name: Build api docs
3536
run: sphinx-apidoc -feT -t=./docs/source/_templates -o ./docs/source/api ./httomolibgpu

.github/workflows/httomolibgpu_version_tag.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,18 @@ jobs:
2929

3030
# install dependencies with conda
3131
- name: Install dependencies with conda
32+
uses: mamba-org/setup-micromamba@v2
33+
with:
34+
environment-name: httomolibgpu
35+
environment-file: ./conda/environment.yml
36+
post-cleanup: 'all'
37+
init-shell: bash
38+
39+
# install httomolibgpu
40+
- name: Install httomolibgpu
3241
run: |
33-
$CONDA/bin/conda env create --name httomolibgpu --file conda/environment.yml
34-
$CONDA/bin/conda run -n httomolibgpu pip install -e .
35-
$CONDA/bin/conda list
42+
pip install -e .
43+
micromamba list
3644
3745
- name: Decrypt a secret
3846
run: ./.scripts/decrypt_secret.sh

0 commit comments

Comments
 (0)