mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Update azure-pipelines-ci.yml for Azure Pipelines
This commit is contained in:
parent
3f6a30a974
commit
0a5966c283
@ -43,7 +43,6 @@ jobs:
|
|||||||
- job: 'Check'
|
- job: 'Check'
|
||||||
dependsOn:
|
dependsOn:
|
||||||
- Lint
|
- Lint
|
||||||
condition: succeeded()
|
|
||||||
pool:
|
pool:
|
||||||
vmImage: 'ubuntu-latest'
|
vmImage: 'ubuntu-latest'
|
||||||
strategy:
|
strategy:
|
||||||
@ -98,10 +97,50 @@ jobs:
|
|||||||
pytest --timeout=9 --durations=10 -qq -o console_output_style=count -p no:sugar tests
|
pytest --timeout=9 --durations=10 -qq -o console_output_style=count -p no:sugar tests
|
||||||
displayName: 'Run pytest for python $(python.version)'
|
displayName: 'Run pytest for python $(python.version)'
|
||||||
|
|
||||||
|
|
||||||
|
- job: 'FullCheck'
|
||||||
|
dependsOn:
|
||||||
|
- Check
|
||||||
|
pool:
|
||||||
|
vmImage: 'ubuntu-latest'
|
||||||
|
container: $[ variables['PythonMain'] ]
|
||||||
|
steps:
|
||||||
|
- script: |
|
||||||
|
echo "$(PythonMain)" > .cache
|
||||||
|
displayName: 'Set python $(python.version) for requirement cache'
|
||||||
|
- task: 1ESLighthouseEng.PipelineArtifactCaching.RestoreCacheV1.RestoreCache@1
|
||||||
|
displayName: 'Restore artifacts based on Requirements'
|
||||||
|
inputs:
|
||||||
|
keyfile: 'requirements_all.txt, .cache'
|
||||||
|
targetfolder: './venv'
|
||||||
|
vstsFeed: '$(ArtifactFeed)'
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
set -e
|
||||||
|
python -m venv venv
|
||||||
|
|
||||||
|
. venv/bin/activate
|
||||||
|
pip install -U pip setuptools
|
||||||
|
pip install -r requirements_all.txt -c homeassistant/package_constraints.txt
|
||||||
|
displayName: 'Create Virtual Environment & Install Requirements'
|
||||||
|
condition: and(succeeded(), ne(variables['CacheRestored'], 'true'))
|
||||||
|
|
||||||
|
- task: 1ESLighthouseEng.PipelineArtifactCaching.SaveCacheV1.SaveCache@1
|
||||||
|
displayName: 'Save artifacts based on Requirements'
|
||||||
|
inputs:
|
||||||
|
keyfile: 'requirements_all.txt, .cache'
|
||||||
|
targetfolder: './venv'
|
||||||
|
vstsFeed: '$(ArtifactFeed)'
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
. venv/bin/activate
|
||||||
|
pip install -e .
|
||||||
|
displayName: 'Install Home Assistant for python $(python.version)'
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
pip install -r requirements_all.txt -c homeassistant/package_constraints.txt
|
pip install -r requirements_all.txt -c homeassistant/package_constraints.txt
|
||||||
|
|
||||||
pylint homeassistant
|
pylint homeassistant
|
||||||
displayName: 'Run pylint'
|
displayName: 'Run pylint'
|
||||||
condition: and(succeeded(), eq(variables['python.container'], variables['PythonMain']))
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user