mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
Update azure-pipelines-ci.yml for Azure Pipelines
This commit is contained in:
parent
1acd34313b
commit
3664f61e2d
@ -38,13 +38,13 @@ jobs:
|
|||||||
sudo apt-get install -y --no-install-recommends \
|
sudo apt-get install -y --no-install-recommends \
|
||||||
libudev libavformat libavcodec libavdevice libavutil libswscale libswresample libavfilter
|
libudev libavformat libavcodec libavdevice libavutil libswscale libswresample libavfilter
|
||||||
|
|
||||||
echo "$(python.version)" > .python
|
echo "$(python.version)" > .cache
|
||||||
displayName: 'Set up docker prerequisite requirement'
|
displayName: 'Set up docker prerequisite requirement'
|
||||||
|
|
||||||
- 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_test_all.txt, .python'
|
keyfile: 'requirements_test_all.txt, .cache'
|
||||||
targetfolder: './venv'
|
targetfolder: './venv'
|
||||||
vstsFeed: '$(ArtifactFeed)'
|
vstsFeed: '$(ArtifactFeed)'
|
||||||
|
|
||||||
@ -55,6 +55,7 @@ jobs:
|
|||||||
|
|
||||||
# Setup venv
|
# Setup venv
|
||||||
python3 -m venv venv
|
python3 -m venv venv
|
||||||
|
|
||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
pip install -U pip setuptools
|
pip install -U pip setuptools
|
||||||
pip3 install -r requirements_test_all.txt -c homeassistant/package_constraints.txt
|
pip3 install -r requirements_test_all.txt -c homeassistant/package_constraints.txt
|
||||||
@ -64,11 +65,13 @@ jobs:
|
|||||||
- 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_test_all.txt, .python'
|
keyfile: 'requirements_test_all.txt, .cache'
|
||||||
targetfolder: './venv'
|
targetfolder: './venv'
|
||||||
vstsFeed: '$(ArtifactFeed)'
|
vstsFeed: '$(ArtifactFeed)'
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
./venv/bin/py.test --timeout=9 --durations=10 -qq -o console_output_style=count -p no:sugar
|
|
||||||
|
. venv/bin/activate
|
||||||
|
pytest --timeout=9 --durations=10 -qq -o console_output_style=count -p no:sugar
|
||||||
./script/check_dirty
|
./script/check_dirty
|
||||||
displayName: 'Run py.test with python $(python.version)'
|
displayName: 'Run pytest for python $(python.version)'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user