Files
rikku-home-assistant/.gitea/workflows/homeassistant-check.yml
T
Trez.One c99abb47b3
Home Assistant & Miscellaneous Deployment / Check and Create PR (push) Successful in 19s
Home Assistant & Miscellaneous Deployment / Home Assistant Configuration Check (push) Failing after 10s
Workflow tweak for HA config.
2025-08-25 16:17:36 -04:00

46 lines
1.2 KiB
YAML

name: Home Assistant Config Check
on:
workflow_call:
inputs:
python-version:
description: 'Python version to use (default 3.13.2)'
required: false
default: '3.13.2'
ha-version:
description: 'Home Assistant version to install'
required: true
default: '2025.8.3'
config-path:
description: 'Path to the Home Assistant configuration'
required: true
default: '.'
jobs:
homeassistant-check:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}
- name: Install Home Assistant
run: |
python -m pip install --upgrade pip
pip install homeassistant==${{ inputs.ha-version }}
- name: Run Home Assistant config check
run: |
hass --config ${{ inputs.config-path }} --script check_config | tee ha-check.log
- name: Upload config check log
if: always()
uses: actions/upload-artifact@v4
with:
name: homeassistant-check-log
path: ha-check.log