Debian Codegraph @

.azure-pipelines/templates/run-tests.yml

raw symbols SCIP
1 parameters:
2 pythonVersion: ''
3 runOnlyRecordedTests: 'false'
4 runWithAzureCliReleased: 'false'
5
6 steps:
7 - task: UsePythonVersion@0
8 inputs:
9 versionSpec: ${{ parameters.pythonVersion }}
10 architecture: 'x64'
11
12 - ${{ if eq(parameters.runWithAzureCliReleased, 'false') }}:
13 - template: install-azure-cli-edge.yml
14
15 - ${{ if eq(parameters.runWithAzureCliReleased, 'true') }}:
16 - template: install-azure-cli-edge.yml
17
18 - template: download-install-local-azure-test-sdk.yml
19
20 - template: setup-ci-machine.yml
21
22 - template: download-install-local-azure-devops-cli-extension.yml
23
24 # - ${{ if eq(parameters.runOnlyRecordedTests, 'false') }}:
25 # - script: pytest --junitxml "TEST-results.xml"
26 # displayName: 'Run Tests'
27
28 # - ${{ if eq(parameters.runOnlyRecordedTests, 'true') }}:
29 # - script: pytest tests --junitxml "TEST-results.xml"
30 # displayName: 'Run Tests'
31
32 - task: PublishTestResults@2
33 displayName: 'Publish Test Results'
34 inputs:
35 testResultsFormat: 'JUnit'
36 testResultsFiles: '**TEST-*.xml'
37 searchFolder: '$(System.DefaultWorkingDirectory)'
38 condition: succeededOrFailed()