numpy
/
azure-steps-windows.yml
55 строк · 2.1 Кб
1steps:
2- script: git submodule update --init
3displayName: 'Fetch submodules'
4- task: UsePythonVersion@0
5inputs:
6versionSpec: $(PYTHON_VERSION)
7addToPath: true
8architecture: $(PYTHON_ARCH)
9
10- script: python -m pip install --upgrade pip wheel
11displayName: 'Install tools'
12
13- script: python -m pip install -r requirements/test_requirements.txt
14displayName: 'Install dependencies; some are optional to avoid test skips'
15
16- powershell: |
17choco install -y --stoponfirstfailure --checksum 6004DF17818F5A6DBF19CB335CC92702 pkgconfiglite
18displayName: 'Install utilities'
19
20- powershell: |
21# Note: ensure the `pip install .` command remains the last one here,
22# to avoid "green on failure" issues
23If ( Test-Path env:DISABLE_BLAS ) {
24python -m pip install . -v -Csetup-args="--vsenv" -Csetup-args="-Dblas=none" -Csetup-args="-Dlapack=none" -Csetup-args="-Dallow-noblas=true"
25}
26elseif ( Test-Path env:_USE_BLAS_ILP64 ) {
27pip install -r requirements/ci_requirements.txt
28spin config-openblas --with-scipy-openblas=64
29$env:PKG_CONFIG_PATH="$pwd/.openblas"
30python -m pip install . -v -Csetup-args="--vsenv"
31} else {
32pip install -r requirements/ci_requirements.txt
33spin config-openblas --with-scipy-openblas=32
34$env:PKG_CONFIG_PATH="$pwd/.openblas"
35python -m pip install . -v -Csetup-args="--vsenv"
36}
37displayName: 'Build NumPy'
38
39- powershell: |
40cd tools # avoid root dir to not pick up source tree
41# Get a gfortran onto the path for f2py tests
42$env:PATH = "c:\\rtools43\\x86_64-w64-mingw32.static.posix\\bin;$env:PATH"
43If ( $env:TEST_MODE -eq "full" ) {
44pytest --pyargs numpy -rsx --junitxml=junit/test-results.xml
45} else {
46pytest --pyargs numpy -m "not slow" -rsx --junitxml=junit/test-results.xml
47}
48displayName: 'Run NumPy Test Suite'
49
50- task: PublishTestResults@2
51condition: succeededOrFailed()
52inputs:
53testResultsFiles: '**/test-*.xml'
54failTaskOnFailedTests: true
55testRunTitle: 'Publish test results for Python $(PYTHON_VERSION) $(BITS)-bit $(TEST_MODE) Windows'
56