Skip to content

chore(deps): update dependency pytest-homeassistant-custom-component … #609

chore(deps): update dependency pytest-homeassistant-custom-component …

chore(deps): update dependency pytest-homeassistant-custom-component … #609

Workflow file for this run

name: Test
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
permissions: {}
# IMPORTANT: Keep HA_VERSION synchronized across all workflow files:
# - copilot-setup-steps.yml
# - lint.yml
# - test.yml
jobs:
pytest:
name: "pytest"
runs-on: "ubuntu-latest"
steps:
- name: Checkout the repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.14"
- name: Install uv
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
with:
version: "0.12.17"
enable-cache: true
cache-dependency-glob: "**/requirements*.txt"
- name: Get Home Assistant version
id: ha_version
run: |
HA_VERSION=$(grep '"homeassistant"' hacs.json | head -1 | sed 's/.*"homeassistant"\s*:\s*"\([^"]*\)".*/\1/')
echo "HA_VERSION=${HA_VERSION}" >> $GITHUB_OUTPUT
echo "Home Assistant version: ${HA_VERSION}"
- name: Cache Home Assistant installation
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: |
.local/ha-venv
key: ha-venv-${{ runner.os }}-py3.14-ha${{ steps.ha_version.outputs.HA_VERSION }}-${{ hashFiles('**/requirements*.txt') }}
restore-keys: |
ha-venv-${{ runner.os }}-py3.14-ha${{ steps.ha_version.outputs.HA_VERSION }}-
ha-venv-${{ runner.os }}-py3.14-
- name: Install requirements
run: script/setup/bootstrap
- name: Run tests
run: script/test