numpy

Форк
0
/
azure-steps-windows.yml 
55 строк · 2.1 Кб
1
steps:
2
- script: git submodule update --init
3
  displayName: 'Fetch submodules'
4
- task: UsePythonVersion@0
5
  inputs:
6
    versionSpec: $(PYTHON_VERSION)
7
    addToPath: true
8
    architecture: $(PYTHON_ARCH)
9

10
- script: python -m pip install --upgrade pip wheel
11
  displayName: 'Install tools'
12

13
- script: python -m pip install -r requirements/test_requirements.txt
14
  displayName: 'Install dependencies; some are optional to avoid test skips'
15

16
- powershell: |
17
    choco install -y --stoponfirstfailure --checksum 6004DF17818F5A6DBF19CB335CC92702 pkgconfiglite
18
  displayName: 'Install utilities'
19

20
- powershell: |
21
    # Note: ensure the `pip install .` command remains the last one here,
22
    # to avoid "green on failure" issues
23
    If ( Test-Path env:DISABLE_BLAS ) {
24
        python -m pip install . -v -Csetup-args="--vsenv" -Csetup-args="-Dblas=none" -Csetup-args="-Dlapack=none" -Csetup-args="-Dallow-noblas=true"
25
    }
26
    elseif ( Test-Path env:_USE_BLAS_ILP64 ) {
27
        pip install -r requirements/ci_requirements.txt
28
        spin config-openblas --with-scipy-openblas=64
29
        $env:PKG_CONFIG_PATH="$pwd/.openblas"
30
        python -m pip install . -v -Csetup-args="--vsenv"
31
    } else {
32
        pip install -r requirements/ci_requirements.txt
33
        spin config-openblas --with-scipy-openblas=32
34
        $env:PKG_CONFIG_PATH="$pwd/.openblas"
35
        python -m pip install . -v -Csetup-args="--vsenv" 
36
    }
37
  displayName: 'Build NumPy'
38

39
- powershell: |
40
    cd 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"
43
    If ( $env:TEST_MODE -eq "full" ) {
44
      pytest --pyargs numpy -rsx --junitxml=junit/test-results.xml
45
    } else {
46
      pytest --pyargs numpy -m "not slow" -rsx --junitxml=junit/test-results.xml
47
    }
48
  displayName: 'Run NumPy Test Suite'
49

50
- task: PublishTestResults@2
51
  condition: succeededOrFailed()
52
  inputs:
53
    testResultsFiles: '**/test-*.xml'
54
    failTaskOnFailedTests: true
55
    testRunTitle: 'Publish test results for Python $(PYTHON_VERSION) $(BITS)-bit $(TEST_MODE) Windows'
56

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

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

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

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