summaryrefslogtreecommitdiff
path: root/azure-pipelines.yml
diff options
context:
space:
mode:
authormattip <matti.picus@gmail.com>2019-08-27 16:38:08 +0300
committermattip <matti.picus@gmail.com>2019-08-27 19:16:22 +0300
commitbfe255f6b649af36a5fc976caaab1b5c4e78ffe7 (patch)
tree13ba10b80c365865278c158f0942ee3ef4d08469 /azure-pipelines.yml
parentd464d192ca996a107fc6dd5099f72227cf64a8ea (diff)
downloadnumpy-bfe255f6b649af36a5fc976caaab1b5c4e78ffe7.tar.gz
BUILD: move all test dependencies to ./test_requirements.txt
Diffstat (limited to 'azure-pipelines.yml')
-rw-r--r--azure-pipelines.yml29
1 files changed, 21 insertions, 8 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 802912673..93fe3f629 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -21,11 +21,12 @@ jobs:
apt-get -y update && \
apt-get -y install python3.6-dev python3-pip locales python3-certifi && \
locale-gen fr_FR && update-locale && \
- pip3 install setuptools nose cython==0.29.0 pytest pytz pickle5 && \
apt-get -y install gfortran-5 wget && \
target=\$(python3 tools/openblas_support.py) && \
cp -r \$target/usr/local/lib/* /usr/lib && \
cp \$target/usr/local/include/* /usr/include && \
+ python3 -m pip install --user --upgrade pip setuptools && \
+ python3 -m pip install --user -r test_requirements.txt && \
python3 -m pip install . && \
F77=gfortran-5 F90=gfortran-5 \
CFLAGS='-UNDEBUG -std=c99' python3 runtests.py -n --mode=full -- -rsx --junitxml=junit/test-results.xml && \
@@ -85,7 +86,9 @@ jobs:
displayName: 'install pre-built openblas'
- script: python -m pip install --upgrade pip setuptools wheel
displayName: 'Install tools'
- - script: python -m pip install cython nose pytz pytest pickle5 vulture docutils sphinx==1.8.5 numpydoc
+ - script: |
+ python -m pip install -r test_requirements.txt
+ python -m pip install vulture docutils sphinx==1.8.5 numpydoc
displayName: 'Install dependencies; some are optional to avoid test skips'
- script: /bin/bash -c "! vulture . --min-confidence 100 --exclude doc/,numpy/distutils/ | grep 'unreachable'"
displayName: 'Check for unreachable code paths in Python modules'
@@ -140,13 +143,11 @@ jobs:
PYTHON_VERSION: '3.6'
PYTHON_ARCH: 'x64'
TEST_MODE: full
- INSTALL_PICKLE5: 1
BITS: 64
Python37-64bit-full:
PYTHON_VERSION: '3.7'
PYTHON_ARCH: 'x64'
TEST_MODE: full
- INSTALL_PICKLE5: 1
BITS: 64
steps:
- task: UsePythonVersion@0
@@ -156,11 +157,8 @@ jobs:
architecture: $(PYTHON_ARCH)
- script: python -m pip install --upgrade pip setuptools wheel
displayName: 'Install tools'
- - script: python -m pip install cython nose pytz pytest
+ - script: python -m pip install -r test_requirements.txt
displayName: 'Install dependencies; some are optional to avoid test skips'
- - script: if [%INSTALL_PICKLE5%]==[1] python -m pip install pickle5
- displayName: 'Install optional pickle5 backport (only for python3.6 and 3.7)'
-
- powershell: |
$pyversion = python -c "from __future__ import print_function; import sys; print(sys.version.split()[0])"
Write-Host "Python Version: $pyversion"
@@ -220,3 +218,18 @@ jobs:
testResultsFiles: '**/test-*.xml'
testRunTitle: 'Publish test results for PyPy3'
failTaskOnFailedTests: true
+
+- job: Check_dependencies
+ pool:
+ vmIMage: 'ubuntu-16.04'
+ steps:
+ - script: |
+ python3.6 -mvenv testenv
+ source testenv/bin/activate
+ pip install --upgrade pip setuptools
+ pip list -o > /tmp/current_pkgs
+ pip install -r test_requirements.txt
+ pip list -o > /tmp/test_pkgs
+ # any newer packages should cause the diff to return 1, which fails the job
+ diff /tmp/current_pkgs /tmp/test_pkgs
+ displayName: 'Show any possible updates to packages'