pre-commit update. #64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- v1 | |
- v2 | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
branches: | |
- v1 | |
- v2 | |
jobs: | |
esphome_release: | |
name: Test with current release of ESPHome | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
- uses: actions/checkout@v4 | |
with: | |
show-progress: false | |
- name: Install ESPHome | |
run: pip install esphome | |
- name: Test compilation of minimal example | |
run: |- | |
workflow-support/fix-example-for-ci examples/minimal.yml | |
cd examples | |
esphome compile minimal.yml | |
- name: Test compilation of full example | |
run: |- | |
workflow-support/fix-example-for-ci examples/full.yml | |
cd examples | |
esphome compile full.yml | |
esphome_dev: | |
name: Test with dev version of ESPHome | |
runs-on: ubuntu-latest | |
env: | |
ESPHOME_NO_VENV: true | |
steps: | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
- uses: actions/checkout@v4 | |
with: | |
show-progress: false | |
- name: Get ESPHome dev branch | |
uses: actions/checkout@v4 | |
with: | |
repository: esphome/esphome | |
ref: dev | |
path: esphome | |
show-progress: false | |
- name: Install ESPHome | |
run: |- | |
esphome/script/setup | |
- name: Test compilation of minimal example | |
run: |- | |
workflow-support/fix-example-for-ci examples/minimal.yml | |
cd examples | |
esphome compile minimal.yml | |
- name: Test compilation of full example | |
run: |- | |
workflow-support/fix-example-for-ci examples/full.yml | |
cd examples | |
esphome compile full.yml |