Files
pipenv/.azure-pipelines/steps/run-tests.yml
T
Dan Ryan 5c525edcaa Redo test structure for azure
Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-04-10 12:14:09 -04:00

29 lines
819 B
YAML

steps:
- task: UsePythonVersion@0
inputs:
versionSpec: $(python.version)
architecture: '$(python.architecture)'
addToPath: true
displayName: Use Python $(python.version)
- script: |
echo '##vso[task.setvariable variable=PIPENV_DEFAULT_PYTHON_VERSION]'$(python.version)
env:
PYTHON_VERSION: $(python.version)
- ${{ if eq(parameters.vmImage, 'windows-latest') }}:
- template: run-tests-windows.yml
parameters:
python_version: $(python.version)
- ${{ if ne(parameters.vmImage, 'windows-latest') }}:
- template: run-tests-linux.yml
parameters:
python_version: $(python.version)
- task: PublishTestResults@2
displayName: Publish Test Results
inputs:
testResultsFiles: '**/junit/*.xml'
testRunTitle: 'Python $(python.version)'
condition: succeededOrFailed()