mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Update azure-pipelines-ci.yml for Azure Pipelines
This commit is contained in:
parent
8e2bbf8c82
commit
bc0fb5e3d9
@ -32,18 +32,40 @@ stages:
|
|||||||
container: $[ variables['PythonMain'] ]
|
container: $[ variables['PythonMain'] ]
|
||||||
steps:
|
steps:
|
||||||
- script: |
|
- script: |
|
||||||
python -m venv lint
|
python -m venv venv
|
||||||
|
|
||||||
. lint/bin/activate
|
. venv/bin/activate
|
||||||
pip install flake8
|
pip install flake8
|
||||||
|
displayName: 'Setup Env'
|
||||||
|
- script: |
|
||||||
|
. lint/bin/activate
|
||||||
flake8 homeassistant tests script
|
flake8 homeassistant tests script
|
||||||
displayName: 'Run flake8'
|
displayName: 'Run flake8'
|
||||||
|
- job: 'Validate'
|
||||||
|
pool:
|
||||||
|
vmImage: 'ubuntu-latest'
|
||||||
|
container: $[ variables['PythonMain'] ]
|
||||||
|
steps:
|
||||||
|
- script: |
|
||||||
|
python -m venv venv
|
||||||
|
|
||||||
|
. venv/bin/activate
|
||||||
|
pip install .
|
||||||
|
displayName: 'Setup Env'
|
||||||
|
- script: |
|
||||||
|
. venv/bin/activate
|
||||||
|
python -m script.hassfest validate
|
||||||
|
displayName: 'Validate manifests'
|
||||||
|
- script: |
|
||||||
|
. venv/bin/activate
|
||||||
|
python script/gen_requirements_all.py validate
|
||||||
|
displayName: 'requirements_all validate'
|
||||||
|
|
||||||
- stage: 'Tests'
|
- stage: 'Tests'
|
||||||
dependsOn:
|
dependsOn:
|
||||||
- 'Overview'
|
- 'Overview'
|
||||||
jobs:
|
jobs:
|
||||||
- job: 'PyTests'
|
- job: 'PyTest'
|
||||||
pool:
|
pool:
|
||||||
vmImage: 'ubuntu-latest'
|
vmImage: 'ubuntu-latest'
|
||||||
strategy:
|
strategy:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user