diff --git a/azure-pipelines-ci.yml b/azure-pipelines-ci.yml index c727fc41e65..486f5b8695d 100644 --- a/azure-pipelines-ci.yml +++ b/azure-pipelines-ci.yml @@ -82,7 +82,7 @@ stages: steps: - script: | python --version > .cache - displayName: 'Set python $(python.version) for requirement cache' + displayName: 'Set python $(python.container) for requirement cache' - task: 1ESLighthouseEng.PipelineArtifactCaching.RestoreCacheV1.RestoreCache@1 displayName: 'Restore artifacts based on Requirements' inputs: @@ -108,17 +108,17 @@ stages: - script: | . venv/bin/activate pip install -e . - displayName: 'Install Home Assistant for python $(python.version)' + displayName: 'Install Home Assistant for python $(python.container)' - script: | . venv/bin/activate 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.container)' 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' + displayName: 'Run pytest for python $(python.container) / coverage' env: CODECOV_TOKEN: '$(codecovToken)' condition: and(succeeded(), eq(variables['python.container'], variables['PythonMain'])) @@ -126,7 +126,7 @@ stages: condition: succeededOrFailed() inputs: testResultsFiles: 'test-results.xml' - testRunTitle: 'Publish test results for Python $(python.version)' + testRunTitle: 'Publish test results for Python $(python.container)' - task: PublishCodeCoverageResults@1 inputs: codeCoverageTool: cobertura @@ -171,7 +171,7 @@ stages: - script: | . venv/bin/activate pip install -e . - displayName: 'Install Home Assistant for python $(python.version)' + displayName: 'Install Home Assistant for python $(PythonMain)' - script: | . venv/bin/activate pylint homeassistant