numpy

Форк
0
/
azure-pipelines.yml 
100 строк · 2.9 Кб
1
trigger:
2
  # start a new build for every push
3
  batch: False
4
  branches:
5
    include:
6
      - main
7
      - maintenance/*
8

9

10
pr:
11
  branches:
12
    include:
13
    - '*'  # must quote since "*" is a YAML reserved character; we want a string
14

15

16
stages:
17

18
- stage: Check
19
  jobs:
20
    - job: Skip
21
      pool:
22
        vmImage: 'ubuntu-20.04'
23
      variables:
24
        DECODE_PERCENTS: 'false'
25
        RET: 'true'
26
      steps:
27
      - bash: |
28
          git_log=`git log --max-count=1 --skip=1 --pretty=format:"%B" | tr "\n" " "`
29
          echo "##vso[task.setvariable variable=log]$git_log"
30
      - bash: echo "##vso[task.setvariable variable=RET]false"
31
        condition: 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"
33
        name: result
34

35
- stage: ComprehensiveTests
36
  condition: and(succeeded(), eq(dependencies.Check.outputs['Skip.result.start_main'], 'true'))
37
  dependsOn: Check
38
  jobs:
39

40
  - job: Lint
41
    condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest'))
42
    pool:
43
      vmImage: 'ubuntu-20.04'
44
    steps:
45
    - task: UsePythonVersion@0
46
      inputs:
47
        versionSpec: '3.10'
48
        addToPath: true
49
        architecture: 'x64'
50
    - script: >-
51
        python -m pip install -r requirements/linter_requirements.txt
52
      displayName: 'Install tools'
53
      # pip 21.1 emits a pile of garbage messages to annoy users :)
54
      #      failOnStderr: true
55
    - script: |
56
        python tools/linter.py --branch origin/$(System.PullRequest.TargetBranch)
57
      displayName: 'Run Lint Checks'
58
      failOnStderr: true
59

60
  - job: Linux_Python_310_32bit_full_with_asserts
61
    pool:
62
      vmImage: 'ubuntu-20.04'
63
    steps:
64
    - script: |
65
        git submodule update --init
66
      displayName: 'Fetch submodules'
67
    - script: |
68
            # yum does not have a ninja package, so use the PyPI one
69
            docker 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"
72
      displayName: 'Run 32-bit manylinux2014 Docker Build / Tests'
73

74
  - job: Windows
75
    timeoutInMinutes: 120
76
    pool:
77
      vmImage: 'windows-2019'
78
    strategy:
79
      maxParallel: 3
80
      matrix:
81
          Python310-64bit-fast:
82
            PYTHON_VERSION: '3.10'
83
            PYTHON_ARCH: 'x64'
84
            TEST_MODE: fast
85
            BITS: 64
86
          Python311-64bit-full:
87
            PYTHON_VERSION: '3.11'
88
            PYTHON_ARCH: 'x64'
89
            TEST_MODE: full
90
            BITS: 64
91
            _USE_BLAS_ILP64: '1'
92
          PyPy310-64bit-fast:
93
            PYTHON_VERSION: 'pypy3.10'
94
            PYTHON_ARCH: 'x64'
95
            TEST_MODE: fast
96
            BITS: 64
97
            _USE_BLAS_ILP64: '1'
98

99
    steps:
100
    - template: azure-steps-windows.yml
101

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.