Skip to content

Commit 16fd7e2

Browse files
committed
refactored mac pipeline
1 parent 052339e commit 16fd7e2

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
steps:
2+
# https://docs.microsoft.com/en-us/azure/devops/pipelines/languages/anaconda?view=azure-devops&tabs=macos
3+
# Add conda to bash
4+
- bash: echo "##vso[task.prependpath]$CONDA/bin"
5+
displayName: Add conda to PATH
6+
7+
# On Hosted macOS, the agent user doesn't have ownership of Miniconda's installation directory/
8+
# We need to take ownership if we want to update conda or install packages globally
9+
- bash: sudo chown -R $USER $CONDA
10+
displayName: Take ownership of conda installation

.azure-pipelines/templates/setup-script.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ steps:
22
- script: |
33
conda env create -f environment.yml
44
source activate bayesian-modelling-tutorial
5-
conda install -y python=$(python.version)
5+
conda install -y python=${{ python.version }}
66
python -m ipykernel install --user --name bayesian-modelling-tutorial
77
displayName: 'Create environment, install correct Python, and activate kernel.'

0 commit comments

Comments
 (0)