Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 0 additions & 50 deletions .github/workflows/docker-build.yml

This file was deleted.

41 changes: 0 additions & 41 deletions .github/workflows/install_dependencies/action.yml

This file was deleted.

81 changes: 24 additions & 57 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,77 +2,44 @@ name: pytest

on:
push:
branches: [master]
branches: [main]
pull_request:

jobs:
pytest:
name: Run pytest
name: pytest (${{ matrix.name }})
runs-on: ubuntu-24.04
timeout-minutes: 60
continue-on-error: ${{ matrix.experimental }}
timeout-minutes: 20
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"
- name: stable
phcc-pre: ""
experimental: false
- name: dev
phcc-pre: "--pre"
experimental: true
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: Set up uv
uses: astral-sh/setup-uv@v8.1.0

- name: Install test dependencies (${{ matrix.name }} PHCC)
run: |
uv venv --python 3.13
uv pip install ${{ matrix.phcc-pre }} \
pytest-homeassistant-custom-component \
pytest \
pytest-asyncio \
ulid-transform

- name: Run pytest
timeout-minutes: 60
env:
PYTHONPATH: ${{ github.workspace }}
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
pytest -q
59 changes: 0 additions & 59 deletions .github/workflows/update-test-matrix.yaml

This file was deleted.

1 change: 0 additions & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ Python tooling is `uv` (not `pip` or `poetry`). All commands assume an activated
| Run a single test | `uv run pytest tests/test_config_flow.py::test_options_flow_init` |
| Lint everything (pre-commit) | `./scripts/lint` |
| Run HA locally with the custom component loaded | `./scripts/develop` (boots HA on `localhost:8123` from `./config/`) |
| Refresh test matrix | `./scripts/update-test-matrix.py` |

Ruff config lives in `.ruff.toml`. Pre-commit hooks in `.pre-commit-config.yaml`. Both enforce on push via `./scripts/lint`.

Expand Down
65 changes: 0 additions & 65 deletions Dockerfile

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
> `sensor.sun2_astro_dawn` for the smoothest fade from deep night to dawn,
> or `sensor.sun2_dawn` for civil twilight. Optional but recommended.
>
> **Minimum Home Assistant version: `2025.1.0`** (pinned in `manifest.json`).
> **Minimum Home Assistant version: `2026.1.0`** (declared in `hacs.json`).
>
> ## ✨ What's new in 2.1
>
Expand Down
2 changes: 1 addition & 1 deletion hacs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "Adaptive Lighting (CDiT)",
"render_readme": true,
"homeassistant": "2024.12.0"
"homeassistant": "2026.1.0"
}
2 changes: 2 additions & 0 deletions openspec/changes/migrate-ci-to-phcc/.openspec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
schema: spec-driven
created: 2026-07-09
3 changes: 3 additions & 0 deletions openspec/changes/migrate-ci-to-phcc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# migrate-ci-to-phcc

Migrate pytest + Docker CI off the HA core-checkout harness to the PHCC-based local test suite
Loading
Loading