From b5f1e15304dcaf294799e48d04cb49488cc90209 Mon Sep 17 00:00:00 2001 From: "Trez.One" Date: Mon, 25 Aug 2025 16:37:43 -0400 Subject: [PATCH] Workflow tweak for HA config. --- .gitea/workflows/home-assistant-deploy.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/home-assistant-deploy.yml b/.gitea/workflows/home-assistant-deploy.yml index 6d71764..0243275 100644 --- a/.gitea/workflows/home-assistant-deploy.yml +++ b/.gitea/workflows/home-assistant-deploy.yml @@ -72,14 +72,19 @@ jobs: uses: actions/setup-python@v5 with: python-version: '3.13.2' - - name: Install Home Assistant + requirements + - name: Create virtual environment run: | + python -m venv venv + source venv/bin/activate python -m pip install --upgrade pip - 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 pip install homeassistant==2025.8.3 + # Download and install all Home Assistant requirements + mkdir -p /tmp/ha-requirements + curl -sSL https://raw.githubusercontent.com/home-assistant/core/2025.8.3/requirements_all.txt -o /tmp/ha-requirements/requirements_all.txt + pip install -r /tmp/ha-requirements/requirements_all.txt - name: Run Home Assistant config check run: | + source venv/bin/activate hass --config ansible/configs/homeassistant --script check_config | tee ha-check.log - name: Upload config check log if: always()