mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-10 05:44:04 +02:00
## Summary - fix hassfest validation by replacing raw options-description URLs with Home Assistant translation placeholders - extend the pytest CI matrix to cover the latest patch release for each Home Assistant month, plus dev - align CI/dev container Python versions and tests with newer Home Assistant behavior ## Validation - GitHub Actions pytest matrix passed for 2024.12.5 through 2026.4.3 plus dev - Docker passed for linux/amd64 and linux/arm64 - hassfest, HACS validation, pre-commit, pre-commit.ci, markdown-code-runner, docs build, and Release Drafter passed
78 lines
2.3 KiB
YAML
78 lines
2.3 KiB
YAML
name: pytest
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
|
|
jobs:
|
|
pytest:
|
|
name: Run pytest
|
|
runs-on: ubuntu-24.04
|
|
timeout-minutes: 60
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- core-version: "2024.12.5"
|
|
python-version: "3.12"
|
|
- core-version: "2025.1.4"
|
|
python-version: "3.12"
|
|
- core-version: "2025.2.5"
|
|
python-version: "3.13"
|
|
- core-version: "2025.3.4"
|
|
python-version: "3.13"
|
|
- core-version: "2025.4.4"
|
|
python-version: "3.13"
|
|
- core-version: "2025.5.3"
|
|
python-version: "3.13"
|
|
- core-version: "2025.6.3"
|
|
python-version: "3.13"
|
|
- core-version: "2025.7.4"
|
|
python-version: "3.13"
|
|
- core-version: "2025.8.3"
|
|
python-version: "3.13"
|
|
- core-version: "2025.9.4"
|
|
python-version: "3.13"
|
|
- core-version: "2025.10.4"
|
|
python-version: "3.13"
|
|
- core-version: "2025.11.3"
|
|
python-version: "3.13"
|
|
- core-version: "2025.12.5"
|
|
python-version: "3.13"
|
|
- core-version: "2026.1.3"
|
|
python-version: "3.13"
|
|
- core-version: "2026.2.3"
|
|
python-version: "3.13"
|
|
- core-version: "2026.3.4"
|
|
python-version: "3.14.2"
|
|
- core-version: "2026.4.3"
|
|
python-version: "3.14.2"
|
|
- core-version: "dev"
|
|
python-version: "3.14.2"
|
|
steps:
|
|
- name: Check out code from GitHub
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Install Home Assistant
|
|
uses: ./.github/workflows/install_dependencies
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
core-version: ${{ matrix.core-version }}
|
|
|
|
- name: Run pytest
|
|
timeout-minutes: 60
|
|
run: |
|
|
export PYTHONPATH=${PYTHONPATH}:${PWD}
|
|
source .venv/bin/activate
|
|
cd core
|
|
python3 -X dev -m pytest \
|
|
-vvv \
|
|
-qq \
|
|
--timeout=9 \
|
|
--durations=10 \
|
|
--cov=homeassistant.components.adaptive_lighting \
|
|
--cov-report=xml \
|
|
-o console_output_style=count \
|
|
-p no:sugar \
|
|
tests/components/adaptive_lighting
|