summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Gommers <ralf.gommers@gmail.com>2021-06-28 23:05:00 +0200
committerGitHub <noreply@github.com>2021-06-28 23:05:00 +0200
commit164682330d70ffe84e706a67955435b76e1cf19d (patch)
treeaca0517b965a603f98d39b48b555e27e18d2224b
parentf9265cae3ca289963f7c089405e3af7d0416c06c (diff)
parentd96daa662083aee6608d31645e4caa1950688b28 (diff)
downloadnumpy-164682330d70ffe84e706a67955435b76e1cf19d.tar.gz
Merge pull request #19329 from cmarmo/conda-azure-ci
ENH Add a conda-based CI job on azure.
-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