Skip to content

Add devcontainer and initial CI/CD tools #8

Add devcontainer and initial CI/CD tools

Add devcontainer and initial CI/CD tools #8

Workflow file for this run

# 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