mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
Update azure-pipelines-ci.yml for Azure Pipelines
This commit is contained in:
parent
95abd91354
commit
f2ae2c128d
@ -21,6 +21,7 @@ variables:
|
|||||||
value: '2df3ae11-3bf6-49bc-a809-ba0d340d6a6d'
|
value: '2df3ae11-3bf6-49bc-a809-ba0d340d6a6d'
|
||||||
- name: PythonMain
|
- name: PythonMain
|
||||||
value: '35'
|
value: '35'
|
||||||
|
- group: codecov
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
|
|
||||||
@ -110,13 +111,28 @@ stages:
|
|||||||
displayName: 'Install Home Assistant for python $(python.version)'
|
displayName: 'Install Home Assistant for python $(python.version)'
|
||||||
- script: |
|
- script: |
|
||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
pytest --timeout=9 --durations=10 --junitxml=junit/test-results.xml -qq -o console_output_style=count -p no:sugar tests
|
pytest --timeout=9 --durations=10 --junitxml=test-results.xml -qq -o console_output_style=count -p no:sugar tests
|
||||||
displayName: 'Run pytest for python $(python.version)'
|
displayName: 'Run pytest for python $(python.version)'
|
||||||
|
condition: and(succeeded(), ne(variables['python.container'], variables['PythonMain']))
|
||||||
|
- script: |
|
||||||
|
. venv/bin/activate
|
||||||
|
pytest --timeout=9 --durations=10 --junitxml=test-results.xml --cov --cov-report=xml -qq -o console_output_style=count -p no:sugar tests
|
||||||
|
codecov
|
||||||
|
displayName: 'Run pytest for python $(python.version) / coverage'
|
||||||
|
env:
|
||||||
|
CODECOV_TOKEN: '$(codecovToken)'
|
||||||
|
condition: and(succeeded(), eq(variables['python.container'], variables['PythonMain']))
|
||||||
- task: PublishTestResults@2
|
- task: PublishTestResults@2
|
||||||
condition: succeededOrFailed()
|
condition: succeededOrFailed()
|
||||||
inputs:
|
inputs:
|
||||||
testResultsFiles: '**/test-*.xml'
|
testResultsFiles: 'test-results.xml'
|
||||||
testRunTitle: 'Publish test results for Python $(python.version)'
|
testRunTitle: 'Publish test results for Python $(python.version)'
|
||||||
|
- task: PublishCodeCoverageResults@1
|
||||||
|
inputs:
|
||||||
|
codeCoverageTool: cobertura
|
||||||
|
summaryFileLocation: coverage.xml
|
||||||
|
displayName: 'publish coverage artifact'
|
||||||
|
condition: and(succeeded(), eq(variables['python.container'], variables['PythonMain']))
|
||||||
|
|
||||||
- stage: 'FullCheck'
|
- stage: 'FullCheck'
|
||||||
dependsOn:
|
dependsOn:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user