mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +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'] ]
|
||||
steps:
|
||||
- script: |
|
||||
python -m venv lint
|
||||
python -m venv venv
|
||||
|
||||
. lint/bin/activate
|
||||
. venv/bin/activate
|
||||
pip install flake8
|
||||
displayName: 'Setup Env'
|
||||
- script: |
|
||||
. lint/bin/activate
|
||||
flake8 homeassistant tests script
|
||||
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'
|
||||
dependsOn:
|
||||
- 'Overview'
|
||||
jobs:
|
||||
- job: 'PyTests'
|
||||
- job: 'PyTest'
|
||||
pool:
|
||||
vmImage: 'ubuntu-latest'
|
||||
strategy:
|
||||
|
Loading…
x
Reference in New Issue
Block a user