@@ -32,42 +32,6 @@ stages:
3232 - bash : echo "##vso[task.setvariable variable=start_main;isOutput=true]$RET"
3333 name : result
3434
35- - stage : InitialTests
36- condition : and(succeeded(), eq(dependencies.Check.outputs['Skip.result.start_main'], 'true'))
37- dependsOn : Check
38- jobs :
39-
40- # Native build is based on gcc flag `-march=native`
41- - job : Linux_baseline_native
42- pool :
43- vmImage : ' ubuntu-20.04'
44- steps :
45- - script : |
46- git submodule update --init
47- displayName: 'Fetch submodules'
48- - script : |
49- if ! `gcc 2>/dev/null`; then
50- sudo apt install gcc
51- fi
52- sudo add-apt-repository ppa:deadsnakes/ppa -y
53- sudo apt install python3.9
54- sudo apt install python3.9-dev
55- sudo apt install python3.9-distutils
56- # python3 has no setuptools, so install one to get us going
57- python3.9 -m pip install --user --upgrade pip 'setuptools<49.2.0'
58- python3.9 -m pip install --user -r test_requirements.txt
59- displayName: 'install python/requirements'
60- - script : |
61- python3.9 runtests.py --show-build-log --cpu-baseline=native --cpu-dispatch=none \
62- --debug-info --mode=full -- -rsx --junitxml=junit/test-results.xml
63- displayName: 'Run native baseline Build / Tests'
64- - task : PublishTestResults@2
65- condition : succeededOrFailed()
66- inputs :
67- testResultsFiles : ' **/test-*.xml'
68- failTaskOnFailedTests : true
69- testRunTitle : ' Publish test results for baseline/native'
70-
7135- stage : ComprehensiveTests
7236 condition : and(succeeded(), eq(dependencies.Check.outputs['Skip.result.start_main'], 'true'))
7337 dependsOn : Check
@@ -105,6 +69,7 @@ stages:
10569 -e F77=gfortran-5 -e F90=gfortran-5 quay.io/pypa/manylinux2014_i686 \
10670 /bin/bash -xc " \
10771 git config --global --add safe.directory /numpy && \
72+ yum install -y ninja && \
10873 cd /numpy && \
10974 /opt/python/cp39-cp39/bin/python -mvenv venv && \
11075 source venv/bin/activate && \
@@ -175,7 +140,7 @@ stages:
175140 - script : |
176141 python -m pip install -r test_requirements.txt
177142 # Don't use doc_requirements.txt since that messes up tests
<
10BC0
tr class="diff-line-row">178- python -m pip install vulture sphinx==4.3.0 numpydoc==1.4.0
143+ python -m pip install vulture sphinx==4.3.0 numpydoc==1.4.0 ninja
179144 displayName: 'Install dependencies; some are optional to avoid test skips'
180145 - script : /bin/bash -c "! vulture . --min-confidence 100 --exclude doc/,numpy/distutils/ | grep 'unreachable'"
181146 displayName : ' Check for unreachable code paths in Python modules'
0 commit comments