summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--azure-pipelines.yml27
-rw-r--r--environment.yml2
2 files changed, 28 insertions, 1 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 14a59e880..fa527f565 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -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'
diff --git a/environment.yml b/environment.yml
index 607aeb231..40670b5df 100644
--- a/environment.yml
+++ b/environment.yml
@@ -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