steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(PYTHON_VERSION)'
displayName: 'Use Python $(PYTHON_VERSION)'
- script: |
python -m pip install --upgrade pip
pip install tox
displayName: "Set up tox"
- script: |
tox -e azure
displayName: "Run tests"
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFiles: '**/test-*.xml'
testRunTitle: 'Publish test results for Python $(PYTHON_VERSION)'