Skip to content

Commit

Permalink
Merge pull request numpy#19329 from cmarmo/conda-azure-ci
Browse files Browse the repository at this point in the history
ENH Add a conda-based CI job on azure.
  • Loading branch information
rgommers authored Jun 28, 2021
2 parents f9265ca + d96daa6 commit 1646823
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -305,4 +305,31 @@ stages:
failTaskOnFailedTests: true
testRunTitle: 'Publish test results for gcc 4.8'

- job: Linux_conda
pool:
vmImage: 'ubuntu-20.04'
steps:
- script: |
# create and activate conda environment
conda env create -f environment.yml
displayName: 'Create conda environment.'
- script: |
# >>> conda initialize >>>
# !! Contents within this block are 'conda init' !!
# see https://github.com/conda/conda/issues/7980
__conda_setup="$('conda' 'shell.bash' 'hook' 2> /dev/null)"
eval "$__conda_setup"
unset __conda_setup
# <<< conda initialize <<<
conda activate numpy-dev
# Run native baseline Build / Tests
python runtests.py --show-build-log --cpu-baseline=native --cpu-dispatch=none \
--debug-info --mode=full -- -rsx --junitxml=junit/test-results.xml
displayName: 'Run native baseline Build / Tests in conda.'
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFiles: '**/test-*.xml'
failTaskOnFailedTests: true
testRunTitle: 'Publish test results for conda installation'

2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dependencies:
- pytest-xdist
- hypothesis
# For type annotations
- mypy=0.812
- mypy=0.902
- typing_extensions
# For building docs
- sphinx=4.0.1
Expand Down

0 comments on commit 1646823

Please sign in to comment.