mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-21 23:30:58 +00:00
5c525edcaa
Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
29 lines
819 B
YAML
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()
|