File: azure-pipelines.yml

package info (click to toggle)
python-wasabi 0.10.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 208 kB
  • sloc: python: 1,255; makefile: 4
file content (94 lines) | stat: -rw-r--r-- 2,433 bytes parent folder | download
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
trigger:
  batch: true
  branches:
    include:
    - '*'

jobs:

- job: 'Test'
  strategy:
    matrix:
      Python27Linux:
        imageName: 'ubuntu-20.04'
        python.version: '2.7'
      Python27LinuxASCII:
        imageName: 'ubuntu-20.04'
        python.version: '2.7'
        LANG: 'en_US.ascii'
        LC_ALL: 'en_US.ascii'
      Python27LinuxASCIIPython:
        imageName: 'ubuntu-20.04'
        python.version: '2.7'
        PYTHONIOENCODING: 'ascii'
      Python27Windows:
        imageName: 'windows-2019'
        python.version: '2.7'
      Python27Mac:
        imageName: 'macOS-10.15'
        python.version: '2.7'
      Python36Linux:
        imageName: 'ubuntu-20.04'
        python.version: '3.6'
      Python36Windows:
        imageName: 'windows-2019'
        python.version: '3.6'
      Python36Mac:
        imageName: 'macOS-10.15'
        python.version: '3.6'
      Python37Linux:
        imageName: 'ubuntu-20.04'
        python.version: '3.7'
      Python37Windows:
        imageName: 'windows-2019'
        python.version: '3.7'
      Python37Mac:
        imageName: 'macOS-10.15'
        python.version: '3.7'
      Python38Linux:
        imageName: 'ubuntu-20.04'
        python.version: '3.8'
      Python38Windows:
        imageName: 'windows-2019'
        python.version: '3.8'
      Python38Mac:
        imageName: 'macOS-10.15'
        python.version: '3.8'
      Python39Linux:
        imageName: 'ubuntu-20.04'
        python.version: '3.9'
      Python39Windows:
        imageName: 'windows-2019'
        python.version: '3.9'
      Python39Mac:
        imageName: 'macOS-10.15'
        python.version: '3.9'
      Python310Linux:
        imageName: 'ubuntu-20.04'
        python.version: '3.10'
      Python310Windows:
        imageName: 'windows-2019'
        python.version: '3.10'
    maxParallel: 4
  pool:
    vmImage: $(imageName)

  steps:
  - task: UsePythonVersion@0
    inputs:
      versionSpec: '$(python.version)'
      architecture: 'x64'

  - script: python -m pip install --upgrade pip
    displayName: 'Install dependencies'

  - script: |
      python -c "import locale; print('Preferred encoding:', locale.getpreferredencoding())"
      python -c "import sys; print('stdout encoding:', sys.stdout.encoding)"
      env
      pip install pytest
      python -m pytest -s wasabi
    displayName: 'Run tests'

  - script: python setup.py sdist
    displayName: 'Test sdist'