44 lines
785 B
YAML
44 lines
785 B
YAML
trigger:
|
|
- master
|
|
- '*.x'
|
|
|
|
variables:
|
|
vmImage: ubuntu-latest
|
|
python.version: '3.8'
|
|
TOXENV: py
|
|
|
|
strategy:
|
|
matrix:
|
|
Linux:
|
|
vmImage: ubuntu-latest
|
|
Windows:
|
|
vmImage: windows-latest
|
|
Mac:
|
|
vmImage: macos-latest
|
|
Python 3.7:
|
|
python.version: '3.7'
|
|
Python 3.6:
|
|
python.version: '3.6'
|
|
PyPy 3:
|
|
python.version: pypy3
|
|
Version Range:
|
|
TOXENV: 'devel,lowest'
|
|
Docs:
|
|
TOXENV: docs
|
|
Style:
|
|
TOXENV: style
|
|
|
|
pool:
|
|
vmImage: $[ variables.vmImage ]
|
|
|
|
steps:
|
|
- task: UsePythonVersion@0
|
|
inputs:
|
|
versionSpec: $(python.version)
|
|
displayName: Use Python $(python.version)
|
|
|
|
- script: pip --disable-pip-version-check install -U tox
|
|
displayName: Install tox
|
|
|
|
- script: tox
|
|
displayName: Run tox
|