File: azure-pipelines-steps.yml

package info (click to toggle)
pytest-mpi 0.6-8
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 404 kB
  • sloc: python: 2,070; makefile: 28; sh: 22
file content (52 lines) | stat: -rw-r--r-- 1,439 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
parameters:
  platform: none
  installer: none

steps:
  - task: UsePythonVersion@0
    inputs:
      versionSpec: "$(python.version)"
      architecture: "x64"
    displayName: "Use Python $(python.version)"
    condition: and(succeeded(), ne(variables['python.version'], 'Pre'))

  - ${{ if eq(parameters.installer, 'brew') }}:
    - script: |
        brew install open-mpi
      displayName: 'Install brew dependencies'
  - ${{ if eq(parameters.installer, 'apt') }}:
    - script: |
        sudo apt-get update
        sudo apt-get install openmpi-bin libopenmpi-dev
      displayName: 'Install apt dependencies'

  - script: |
      python -m pip install --upgrade pip
      pip install tox codecov twine wheel
    displayName: "Install pip dependencies"

  - task: TwineAuthenticate@0
    inputs:
      externalFeeds: "pypi"
    condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/')

  - script: env
    displayName: "print env"

  - script: |
      tox
    displayName: "tox"

  #- script: |
  #    codecov
  #  displayName: 'codecov'
  # hopefully the bash uploader will work
  - script: |
      bash <(curl -s https://codecov.io/bash)
    displayName: "Upload to codecov.io"

  - script: |
      python setup.py sdist bdist_wheel
      twine upload --skip-existing -r pypi --config-file $(PYPIRC_PATH) dist/*
    displayName: "Upload to PyPI"
    condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/')