mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 02:37:08 +00:00
Update azure-pipelines-ci.yml for Azure Pipelines
This commit is contained in:
parent
0a5966c283
commit
4e6b133a17
@ -111,7 +111,7 @@ jobs:
|
|||||||
- task: 1ESLighthouseEng.PipelineArtifactCaching.RestoreCacheV1.RestoreCache@1
|
- task: 1ESLighthouseEng.PipelineArtifactCaching.RestoreCacheV1.RestoreCache@1
|
||||||
displayName: 'Restore artifacts based on Requirements'
|
displayName: 'Restore artifacts based on Requirements'
|
||||||
inputs:
|
inputs:
|
||||||
keyfile: 'requirements_all.txt, .cache'
|
keyfile: 'requirements_all.txt, requirements_test.txt, .cache'
|
||||||
targetfolder: './venv'
|
targetfolder: './venv'
|
||||||
vstsFeed: '$(ArtifactFeed)'
|
vstsFeed: '$(ArtifactFeed)'
|
||||||
|
|
||||||
@ -122,13 +122,14 @@ jobs:
|
|||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
pip install -U pip setuptools
|
pip install -U pip setuptools
|
||||||
pip install -r requirements_all.txt -c homeassistant/package_constraints.txt
|
pip install -r requirements_all.txt -c homeassistant/package_constraints.txt
|
||||||
|
pip install -r requirements_test.txt -c homeassistant/package_constraints.txt
|
||||||
displayName: 'Create Virtual Environment & Install Requirements'
|
displayName: 'Create Virtual Environment & Install Requirements'
|
||||||
condition: and(succeeded(), ne(variables['CacheRestored'], 'true'))
|
condition: and(succeeded(), ne(variables['CacheRestored'], 'true'))
|
||||||
|
|
||||||
- task: 1ESLighthouseEng.PipelineArtifactCaching.SaveCacheV1.SaveCache@1
|
- task: 1ESLighthouseEng.PipelineArtifactCaching.SaveCacheV1.SaveCache@1
|
||||||
displayName: 'Save artifacts based on Requirements'
|
displayName: 'Save artifacts based on Requirements'
|
||||||
inputs:
|
inputs:
|
||||||
keyfile: 'requirements_all.txt, .cache'
|
keyfile: 'requirements_all.txt, requirements_test.txt, .cache'
|
||||||
targetfolder: './venv'
|
targetfolder: './venv'
|
||||||
vstsFeed: '$(ArtifactFeed)'
|
vstsFeed: '$(ArtifactFeed)'
|
||||||
|
|
||||||
@ -139,8 +140,6 @@ jobs:
|
|||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
pip install -r requirements_all.txt -c homeassistant/package_constraints.txt
|
|
||||||
|
|
||||||
pylint homeassistant
|
pylint homeassistant
|
||||||
displayName: 'Run pylint'
|
displayName: 'Run pylint'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user