Another tweak to HA config check.
Home Assistant & Miscellaneous Deployment / Check and Create PR (push) Successful in 19s
Home Assistant & Miscellaneous Deployment / Home Assistant Configuration Check (push) Failing after 14s
Home Assistant & Miscellaneous Deployment / Docker Compose Dry Run (push) Has been skipped
Home Assistant & Miscellaneous Deployment / Check and Create PR (push) Successful in 19s
Home Assistant & Miscellaneous Deployment / Home Assistant Configuration Check (push) Failing after 14s
Home Assistant & Miscellaneous Deployment / Docker Compose Dry Run (push) Has been skipped
This commit is contained in:
@@ -65,15 +65,19 @@ jobs:
|
|||||||
name: Home Assistant Configuration Check
|
name: Home Assistant Configuration Check
|
||||||
needs: [check-and-create-pr]
|
needs: [check-and-create-pr]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
env:
|
env:
|
||||||
HA_VERSION: "2025.8.3"
|
HA_VERSION: "2025.8.3"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.13.2'
|
python-version: '3.13.2'
|
||||||
|
|
||||||
- name: Cache pip wheels
|
- name: Cache pip wheels
|
||||||
id: cache-wheels
|
id: cache-wheels
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
@@ -82,6 +86,7 @@ jobs:
|
|||||||
key: pip-wheels-${{ runner.os }}-py3.13-ha-${{ env.HA_VERSION }}
|
key: pip-wheels-${{ runner.os }}-py3.13-ha-${{ env.HA_VERSION }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
pip-wheels-${{ runner.os }}-py3.13-
|
pip-wheels-${{ runner.os }}-py3.13-
|
||||||
|
|
||||||
- name: Gotify Notification (setup)
|
- name: Gotify Notification (setup)
|
||||||
uses: eikendev/gotify-action@master
|
uses: eikendev/gotify-action@master
|
||||||
with:
|
with:
|
||||||
@@ -89,13 +94,20 @@ jobs:
|
|||||||
gotify_app_token: ${{ secrets.RIKKU_RUNNER_GOTIFY_TOKEN }}
|
gotify_app_token: ${{ secrets.RIKKU_RUNNER_GOTIFY_TOKEN }}
|
||||||
notification_title: 'GITEA: Home Assistant Config Check'
|
notification_title: 'GITEA: Home Assistant Config Check'
|
||||||
notification_message: 'Setting up Python and dependencies...'
|
notification_message: 'Setting up Python and dependencies...'
|
||||||
- name: Build wheels & install Home Assistant (future-proof)
|
|
||||||
|
- name: Download HA requirements_all.txt
|
||||||
|
run: |
|
||||||
|
curl -sSL -o requirements_all.txt \
|
||||||
|
"https://raw.githubusercontent.com/home-assistant/core/${HA_VERSION}/requirements_all.txt"
|
||||||
|
|
||||||
|
- name: Build wheels & install Home Assistant + full deps
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip wheel
|
python -m pip install --upgrade pip wheel
|
||||||
# Build wheels for HA and *all* optional dependencies
|
# Build wheels for HA, full requirements, and colorlog explicitly
|
||||||
pip wheel --wheel-dir ~/.cache/pip "homeassistant[all]==${HA_VERSION}"
|
pip wheel --wheel-dir ~/.cache/pip -r requirements_all.txt "homeassistant==${HA_VERSION}" colorlog
|
||||||
# Install everything from cached wheels
|
# Install everything from cached wheels
|
||||||
pip install --no-index --find-links ~/.cache/pip "homeassistant[all]==${HA_VERSION}"
|
pip install --no-index --find-links ~/.cache/pip -r requirements_all.txt "homeassistant==${HA_VERSION}" colorlog
|
||||||
|
|
||||||
- name: Gotify Notification (start check)
|
- name: Gotify Notification (start check)
|
||||||
uses: eikendev/gotify-action@master
|
uses: eikendev/gotify-action@master
|
||||||
with:
|
with:
|
||||||
@@ -103,9 +115,11 @@ jobs:
|
|||||||
gotify_app_token: ${{ secrets.RIKKU_RUNNER_GOTIFY_TOKEN }}
|
gotify_app_token: ${{ secrets.RIKKU_RUNNER_GOTIFY_TOKEN }}
|
||||||
notification_title: 'GITEA: Home Assistant Config Check'
|
notification_title: 'GITEA: Home Assistant Config Check'
|
||||||
notification_message: 'Starting config check...'
|
notification_message: 'Starting config check...'
|
||||||
|
|
||||||
- name: Run Home Assistant config check
|
- name: Run Home Assistant config check
|
||||||
run: |
|
run: |
|
||||||
hass --config ansible/configs/homeassistant --script check_config | tee ha-check.log
|
hass --config ansible/configs/homeassistant --script check_config | tee ha-check.log
|
||||||
|
|
||||||
- name: Gotify Notification (done)
|
- name: Gotify Notification (done)
|
||||||
uses: eikendev/gotify-action@master
|
uses: eikendev/gotify-action@master
|
||||||
with:
|
with:
|
||||||
@@ -113,6 +127,7 @@ jobs:
|
|||||||
gotify_app_token: ${{ secrets.RIKKU_RUNNER_GOTIFY_TOKEN }}
|
gotify_app_token: ${{ secrets.RIKKU_RUNNER_GOTIFY_TOKEN }}
|
||||||
notification_title: 'GITEA: Home Assistant Config Check'
|
notification_title: 'GITEA: Home Assistant Config Check'
|
||||||
notification_message: '🚀 Config check done!'
|
notification_message: '🚀 Config check done!'
|
||||||
|
|
||||||
# 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
|
||||||
|
|||||||
Reference in New Issue
Block a user