pip/.azure-pipelines/steps/run-tests.yml

26 lines
962 B
YAML
Raw Normal View History

2018-08-24 22:09:32 +02:00
steps:
- task: UsePythonVersion@0
displayName: Use Python $(python.version)
inputs:
versionSpec: '$(python.version)'
- bash: pip install --upgrade 'virtualenv<20' setuptools tox
2018-10-05 22:01:08 +02:00
displayName: Install Tox
2018-08-24 22:09:32 +02:00
2019-10-29 07:04:55 +01:00
- script: tox -e py -- -m unit -n auto --junit-xml=junit/unit-test.xml
2018-08-24 22:09:32 +02:00
displayName: Tox run unit tests
# Run integration tests in two groups so we will fail faster if there is a failure in the first group
- script: tox -e py -- -m integration -n auto --durations=5 -k "not test_install" --junit-xml=junit/integration-test-group0.xml
2018-08-24 22:09:32 +02:00
displayName: Tox run Group 0 integration tests
- script: tox -e py -- -m integration -n auto --durations=5 -k "test_install" --junit-xml=junit/integration-test-group1.xml
2018-08-24 22:09:32 +02:00
displayName: Tox run Group 1 integration tests
- task: PublishTestResults@2
displayName: Publish Test Results
inputs:
testResultsFiles: junit/*.xml
testRunTitle: 'Python $(python.version)'
2019-09-24 13:47:01 +02:00
condition: succeededOrFailed()