Workflow tweak for HA config.
Home Assistant & Miscellaneous Deployment / Check and Create PR (push) Has been cancelled
Home Assistant & Miscellaneous Deployment / Home Assistant Configuration Check (push) Has been cancelled

This commit is contained in:
2025-08-25 16:32:12 -04:00
parent 069fb29876
commit 3c50705f3a
2 changed files with 23 additions and 53 deletions
+23 -6
View File
@@ -63,12 +63,29 @@ jobs:
notification_message: 'PR Created 🎟️'
home-assistant-config-check:
name: Home Assistant Configuration Check
needs: [check-and-create-pr]
uses: ./.gitea/workflows/homeassistant-check.yml
with:
python-version: '3.13.2'
ha-version: '2025.8.3'
config-path: 'ansible/configs/homeassistant'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python 3.13.2
uses: actions/setup-python@v5
with:
python-version: '3.13.2'
- name: Install Home Assistant + requirements
run: |
python -m pip install --upgrade pip
pip install homeassistant==2025.8.3
curl -sSL https://raw.githubusercontent.com/home-assistant/core/2025.8.3/requirements_all.txt -o requirements_all.txt
pip install -r requirements_all.txt
- name: Run Home Assistant config check
run: |
hass --config ansible/configs/homeassistant --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
# generate-service-list:
# name: Generate list of added/modified/deleted services
# runs-on: ubuntu-latest
-47
View File
@@ -1,47 +0,0 @@
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 + requirements
run: |
python -m pip install --upgrade pip
pip install homeassistant==${{ inputs.ha-version }}
curl -sSL https://raw.githubusercontent.com/home-assistant/core/${{ inputs.ha-version }}/requirements_all.txt -o requirements_all.txt
pip install -r requirements_all.txt
- 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