Skip to content

Commit

Permalink
Fix macOS CI - install conda via miniforge (#102)
Browse files Browse the repository at this point in the history
* Fix macOS CI - install conda via miniforge

* Remove btllib constraint in requirements.txt
  • Loading branch information
lcoombe authored Oct 2, 2024
1 parent 6052420 commit d6b64c3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,20 @@ 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 ntlink_CI
displayName: Create Anaconda environment
- script: |
source activate ntlink_CI
conda install --yes --quiet --name ntlink_CI -c conda-forge -c bioconda python=3.9 mamba
mamba install --yes --quiet -c conda-forge -c bioconda pylint pytest pandas abyss
mamba install --yes --quiet -c conda-forge -c bioconda --file requirements.txt
displayName: Install Anaconda packages
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
numpy
python-igraph
btllib <= 1.4.10
btllib

0 comments on commit d6b64c3

Please sign in to comment.