|
1 | 1 | steps: |
2 | | - - script: "python -m pip install tox" |
3 | | - displayName: "Setup Python packages" |
| 2 | + - script: python -m pip install tox |
| 3 | + displayName: Setup Python packages |
4 | 4 |
|
5 | 5 | - pwsh: | |
6 | 6 | $toxEnv = '$(python.version)' |
|
9 | 9 | } |
10 | 10 | echo 'tox environment: $toxEnv' |
11 | 11 | python -m tox -e $toxEnv -- --junitxml=$(Build.ArtifactStagingDirectory)/tests.xml --debugpy-log-dir=$(Build.ArtifactStagingDirectory)/logs tests |
12 | | - displayName: "Run tests using tox" |
| 12 | + displayName: Run tests using tox |
13 | 13 | env: |
14 | 14 | DEBUGPY_PROCESS_SPAWN_TIMEOUT: 60 |
15 | 15 | DEBUGPY_LAUNCH_TIMEOUT: 60 |
16 | 16 |
|
17 | 17 | - task: PublishBuildArtifacts@1 |
18 | | - condition: failed() |
| 18 | + displayName: Publish test logs |
19 | 19 | inputs: |
20 | | - artifactName: "Test logs" |
21 | | - pathToPublish: "$(Build.ArtifactStagingDirectory)/logs" |
22 | | - displayName: "Publish test logs" |
| 20 | + artifactName: Test logs |
| 21 | + pathToPublish: $(Build.ArtifactStagingDirectory)/logs |
| 22 | + condition: failed() |
23 | 23 |
|
24 | 24 | - task: PublishTestResults@2 |
25 | | - condition: always() |
| 25 | + displayName: Publish test results |
26 | 26 | inputs: |
27 | | - testRunTitle: "$(Agent.JobName)" |
28 | | - testResultsFiles: "tests.xml" |
29 | | - searchFolder: "$(Build.ArtifactStagingDirectory)" |
30 | | - displayName: "Publish test results" |
| 27 | + testRunTitle: $(Agent.JobName) |
| 28 | + testResultsFiles: tests.xml |
| 29 | + searchFolder: $(Build.ArtifactStagingDirectory) |
| 30 | + condition: always() |
| 31 | + |
0 commit comments