Skip to content

Commit

Permalink
Install conda using miniforge in CI (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
lcoombe authored Oct 2, 2024
1 parent affa2f6 commit e320d7f
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,22 @@ jobs:
pool:
vmImage: macOS-latest
steps:
- script: echo "##vso[task.prependpath]$CONDA/bin"
displayName: Add conda to PATH
- script: |
mkdir -p ~/miniforge3
curl -L https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-MacOSX-x86_64.sh -o ~/miniforge3/miniforge.sh
bash ~/miniforge3/miniforge.sh -b -u -p ~/miniforge3
rm -rf ~/miniforge3/miniforge.sh
~/miniforge3/bin/conda init bash
~/miniforge3/bin/conda init zsh
export CONDA=$(realpath ~/miniforge3/bin)
echo "##vso[task.prependpath]$CONDA"
displayName: Install conda
- script: conda create --yes --quiet --name ntjoin_CI
displayName: Create Anaconda environment

- script: |
source activate ntjoin_CI
conda install --yes --quiet --name ntjoin_CI -c conda-forge -c bioconda python mamba
mamba install --yes --quiet -c conda-forge -c bioconda pylint samtools python-igraph pybedtools pymannkendall btllib
displayName: Install Anaconda packages
- script: |
Expand Down

0 comments on commit e320d7f

Please sign in to comment.