-
Notifications
You must be signed in to change notification settings - Fork 68
37 lines (29 loc) · 959 Bytes
/
test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Test ESPHome configuration files using local components
name: Compile and validate YAML configuration
on:
pull_request:
push:
branches: [main]
jobs:
tests:
name: "${{ matrix.version }}"
runs-on: "ubuntu-latest"
strategy:
fail-fast: false
matrix:
version: ["esp32", "esp8266", "esp32-passthrough", "esp8266-passthrough"]
steps:
- uses: "actions/checkout@v4"
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pip"
- name: "Install Python dependencies"
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: "Validate ${{ matrix.version }}"
run: esphome config tests/office-desk-${{ matrix.version }}.yaml
- name: "Compile ${{ matrix.version }}"
run: esphome compile tests/office-desk-${{ matrix.version }}.yaml