Skip to content

Commit

Permalink
CI: enable pyDiSCaMB tests on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
bkpoon committed Feb 25, 2025
1 parent 160a660 commit 5a8f7a6
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .azure-pipelines/unix-conda-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,16 @@ steps:
# run pyDiSCaMB tests
- script: |
set -xe
source $(Pipeline.Workspace)/miniforge/etc/profile.d/conda.sh
conda activate $(PYTHON_VERSION)
if [[ "$(OS)" == "osx"* ]]; then
source $(Pipeline.Workspace)/miniforge/etc/profile.d/conda.sh
if [ -d $(Pipeline.Workspace)/miniforge/envs/compiler ]; then
conda remove -y --all -n compiler
fi
conda create -y -n compiler cxx-compiler
conda activate compiler
fi
cd $(Pipeline.Workspace)
source ./build/setpaths.sh
cd ./modules/pyDiSCaMB
Expand All @@ -238,7 +246,7 @@ steps:
libtbx.python ${t}
done
displayName: Run pyDiSCaMB tests
condition: and(ne(variables['PYTHON_VERSION'], 'py27'), eq(variables['OS'], 'linux-64'))
condition: ne(variables['PYTHON_VERSION'], 'py27')
retryCountOnTaskFailure: 3

# store tests directory as an artifact
Expand Down

0 comments on commit 5a8f7a6

Please sign in to comment.