Skip to content

Commit

Permalink
Use mamba instead of conda (#850)
Browse files Browse the repository at this point in the history
* lets see how much time mamba saves

* Update CI.yaml

* switch to use mamba fully, also use shim to save even more time
  • Loading branch information
mikemhenry authored Oct 25, 2021
1 parent 467c637 commit 2a3614b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,26 +44,28 @@ jobs:
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
mamba-version: "*"
environment-file: devtools/conda-envs/test_env.yaml
channels: conda-forge,defaults,omnia-dev,openeye
channels: jaimergp/label/unsupported-cudatoolkit-shim,conda-forge,defaults,omnia-dev,openeye
activate-environment: test
auto-update-conda: true
auto-activate-base: false
show-channel-urls: true
channel-priority: true

- name: Refine test environment
shell: bash -l {0}
run: |
case ${{ matrix.cfg.openmm }} in
latest)
echo "Using latest release OpenMM."
conda install --quiet -c conda-forge openmm;;
mamba install --quiet -c conda-forge openmm;;
#rc) # We can uncomment this case when we have this label on conda-forge
#echo "Using OpenMM rc"
#conda install --quiet -c conda-forge/label/openmm_rc openmm;;
#mamba install --quiet -c conda-forge/label/openmm_rc openmm;;
nightly)
echo "Using OpenMM nightly dev build."
conda install --quiet -c omnia-dev openmm;;
mamba install --quiet -c omnia-dev openmm;;
esac
- name: Install package
Expand All @@ -74,8 +76,8 @@ jobs:
- name: Environment Information
shell: bash -l {0}
run: |
conda info -a
conda list
mamba info -a
mamba list
- name: Decrypt OpenEye license
shell: bash -l {0}
Expand Down
1 change: 1 addition & 0 deletions devtools/conda-envs/test_env.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: test
channels:
- jaimergp/label/unsupported-cudatoolkit-shim
- conda-forge
- defaults
- omnia-dev
Expand Down

0 comments on commit 2a3614b

Please sign in to comment.