Add requirements-test-latest.txt pinning the newest published pytest-homeassistant-custom-component (0.13.316, HA 2026.2.3, Python 3.13) and run the workflow as a matrix over both requirement files. No DNS-library pin is needed for the newer release. Both environments pass scripts/check.sh locally, with no HA deprecation warnings logged for this integration. Remote runner execution is still unverified. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
30 lines
912 B
YAML
30 lines
912 B
YAML
name: Tests
|
|
on:
|
|
push:
|
|
pull_request:
|
|
workflow_dispatch:
|
|
jobs:
|
|
tests:
|
|
runs-on: bs-node
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
# Minimum supported HA (hacs.json) and the newest published test fixtures.
|
|
requirements: [requirements-test.txt, requirements-test-latest.txt]
|
|
steps:
|
|
- uses: https://github.com/actions/checkout@v4
|
|
# uv supplies standalone Python builds for the Debian job container.
|
|
- uses: https://github.com/astral-sh/setup-uv@v6
|
|
with:
|
|
version: '0.9.6'
|
|
enable-cache: false
|
|
github-token: ''
|
|
- name: Create Python environment
|
|
run: uv venv --python 3.13 --seed .venv
|
|
- name: Install test dependencies
|
|
run: uv pip install --python .venv/bin/python -r ${{ matrix.requirements }}
|
|
- name: Run checks
|
|
run: |
|
|
. .venv/bin/activate
|
|
sh scripts/check.sh
|