numpy
/
azure-pipelines.yml
100 строк · 2.9 Кб
1trigger:
2# start a new build for every push
3batch: False
4branches:
5include:
6- main
7- maintenance/*
8
9
10pr:
11branches:
12include:
13- '*' # must quote since "*" is a YAML reserved character; we want a string
14
15
16stages:
17
18- stage: Check
19jobs:
20- job: Skip
21pool:
22vmImage: 'ubuntu-20.04'
23variables:
24DECODE_PERCENTS: 'false'
25RET: 'true'
26steps:
27- bash: |
28git_log=`git log --max-count=1 --skip=1 --pretty=format:"%B" | tr "\n" " "`
29echo "##vso[task.setvariable variable=log]$git_log"
30- bash: echo "##vso[task.setvariable variable=RET]false"
31condition: or(contains(variables.log, '[skip azp]'), contains(variables.log, '[azp skip]'), contains(variables.log, '[skip ci]'), contains(variables.log, '[ci skip]'))
32- bash: echo "##vso[task.setvariable variable=start_main;isOutput=true]$RET"
33name: result
34
35- stage: ComprehensiveTests
36condition: and(succeeded(), eq(dependencies.Check.outputs['Skip.result.start_main'], 'true'))
37dependsOn: Check
38jobs:
39
40- job: Lint
41condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest'))
42pool:
43vmImage: 'ubuntu-20.04'
44steps:
45- task: UsePythonVersion@0
46inputs:
47versionSpec: '3.10'
48addToPath: true
49architecture: 'x64'
50- script: >-
51python -m pip install -r requirements/linter_requirements.txt
52displayName: 'Install tools'
53# pip 21.1 emits a pile of garbage messages to annoy users :)
54# failOnStderr: true
55- script: |
56python tools/linter.py --branch origin/$(System.PullRequest.TargetBranch)
57displayName: 'Run Lint Checks'
58failOnStderr: true
59
60- job: Linux_Python_310_32bit_full_with_asserts
61pool:
62vmImage: 'ubuntu-20.04'
63steps:
64- script: |
65git submodule update --init
66displayName: 'Fetch submodules'
67- script: |
68# yum does not have a ninja package, so use the PyPI one
69docker run -v $(pwd):/numpy -e CFLAGS="-msse2 -std=c99 -UNDEBUG" \
70-e F77=gfortran-5 -e F90=gfortran-5 quay.io/pypa/manylinux2014_i686 \
71/bin/bash -xc "source /numpy/tools/ci/run_32_bit_linux_docker.sh"
72displayName: 'Run 32-bit manylinux2014 Docker Build / Tests'
73
74- job: Windows
75timeoutInMinutes: 120
76pool:
77vmImage: 'windows-2019'
78strategy:
79maxParallel: 3
80matrix:
81Python310-64bit-fast:
82PYTHON_VERSION: '3.10'
83PYTHON_ARCH: 'x64'
84TEST_MODE: fast
85BITS: 64
86Python311-64bit-full:
87PYTHON_VERSION: '3.11'
88PYTHON_ARCH: 'x64'
89TEST_MODE: full
90BITS: 64
91_USE_BLAS_ILP64: '1'
92PyPy310-64bit-fast:
93PYTHON_VERSION: 'pypy3.10'
94PYTHON_ARCH: 'x64'
95TEST_MODE: fast
96BITS: 64
97_USE_BLAS_ILP64: '1'
98
99steps:
100- template: azure-steps-windows.yml
101