|
1 |
| -parameters: |
2 |
| - pythonVersions: [] |
3 |
| - vmImage: '' |
4 |
| - jobName: '' |
5 |
| - pythonArchitecture: '' |
6 |
| - |
7 |
| -jobs: |
8 |
| -- job: ${{ parameters.jobName }} |
9 |
| - pool: |
10 |
| - vmImage: ${{ parameters.vmImage }} |
11 |
| - strategy: |
12 |
| - matrix: |
13 |
| - ${{ each py in parameters.pythonVersions }}: |
14 |
| - python.version: ${{ py }} |
15 |
| - python.architecture: ${{ parameters.pythonArchitecture }} |
16 |
| - maxParallel: 8 |
17 |
| - |
18 |
| - variables: |
19 |
| - - group: CI |
20 |
| - |
21 |
| - steps: |
22 |
| - - task: UsePythonVersion@0 |
23 |
| - inputs: |
24 |
| - versionSpec: $(python.version) |
25 |
| - architecture: '$(python.architecture)' |
26 |
| - addToPath: true |
27 |
| - displayName: Use Python $(python.version) |
28 |
| - |
29 |
| - - template: install-dependencies.yml |
30 |
| - |
31 |
| - - script: | |
32 |
| - echo '##vso[task.setvariable variable=PIPENV_DEFAULT_PYTHON_VERSION]'$(python.version) |
33 |
| - env: |
34 |
| - PYTHON_VERSION: $(python.version) |
35 |
| -
|
36 |
| - - template: create-virtualenv.yml |
| 1 | +steps: |
| 2 | +- task: UsePythonVersion@0 |
| 3 | + inputs: |
| 4 | + versionSpec: $(python.version) |
| 5 | + architecture: '$(python.architecture)' |
| 6 | + addToPath: true |
| 7 | + displayName: Use Python $(python.version) |
| 8 | + |
| 9 | +- template: install-dependencies.yml |
| 10 | + |
| 11 | +- script: | |
| 12 | + echo '##vso[task.setvariable variable=PIPENV_DEFAULT_PYTHON_VERSION]'$(python.version) |
| 13 | + env: |
| 14 | + PYTHON_VERSION: $(python.version) |
| 15 | + |
| 16 | +- template: create-virtualenv.yml |
| 17 | + parameters: |
| 18 | + python_version: $(python.version) |
| 19 | + |
| 20 | +- ${{ if eq(parameters.vmImage, 'windows-latest') }}: |
| 21 | + - template: run-tests-windows.yml |
| 22 | + parameters: |
| 23 | + python_version: $(python.version) |
| 24 | +- ${{ if ne(parameters.vmImage, 'windows-latest') }}: |
| 25 | + - template: run-tests-linux.yml |
37 | 26 | parameters:
|
38 | 27 | python_version: $(python.version)
|
39 | 28 |
|
40 |
| - - ${{ if eq(parameters.vmImage, 'windows-latest') }}: |
41 |
| - - template: run-tests-windows.yml |
42 |
| - parameters: |
43 |
| - python_version: $(python.version) |
44 |
| - - ${{ if ne(parameters.vmImage, 'windows-latest') }}: |
45 |
| - - template: run-tests-linux.yml |
46 |
| - parameters: |
47 |
| - python_version: $(python.version) |
48 |
| - |
49 |
| - - task: PublishTestResults@2 |
50 |
| - displayName: Publish Test Results |
51 |
| - inputs: |
52 |
| - testResultsFiles: '**/test-results.xml' |
53 |
| - testRunTitle: 'Python $(python.version)' |
54 |
| - condition: succeededOrFailed() |
| 29 | +- task: PublishTestResults@2 |
| 30 | + displayName: Publish Test Results |
| 31 | + inputs: |
| 32 | + testResultsFiles: '**/test-results.xml' |
| 33 | + testRunTitle: 'Python $(python.version)' |
| 34 | + condition: succeededOrFailed() |
0 commit comments