Workflow tweak for HA config.
This commit is contained in:
@@ -67,17 +67,12 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout only configuration.yaml
|
- name: Checkout only configuration.yaml
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Set up Python 3.13.2
|
- name: Home Assistant Config Check
|
||||||
uses: actions/setup-python@v5
|
uses: ./.gitea/workflows/homeassistant-check.yml
|
||||||
with:
|
with:
|
||||||
python-version: '3.13.2'
|
python-version: '3.13.2'
|
||||||
- name: Install Home Assistant
|
ha-version: '2025.8.3'
|
||||||
run: |
|
config-path: 'ansible/configs/homeassistant'
|
||||||
python -m pip install --upgrade pip
|
|
||||||
pip install homeassistant==2025.8.3
|
|
||||||
- name: Run Home Assistant config check
|
|
||||||
run: |
|
|
||||||
hass --config ansible/configs/homeassistant --script check_config
|
|
||||||
# generate-service-list:
|
# generate-service-list:
|
||||||
# name: Generate list of added/modified/deleted services
|
# name: Generate list of added/modified/deleted services
|
||||||
# runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
|
|||||||
@@ -0,0 +1,45 @@
|
|||||||
|
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
|
||||||
Reference in New Issue
Block a user