Repository navigation
101 lines (94 loc) · 3.5 KB
/
Copy pathvalidate.yml
File metadata and controls
101 lines (94 loc) · 3.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: Validate
on:
push:
pull_request:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
permissions:
contents: read
jobs:
validate-hacs:
name: HACS Validation
runs-on: ubuntu-latest
steps:
- name: HACS validation
uses: hacs/action@main
with:
category: integration
hassfest:
name: Hassfest
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Hassfest validation
uses: home-assistant/actions/hassfest@master
# Failure boundary 1: the STUB-BASED unit suite. It never installs Home
# Assistant -- the suite runs against the fake `homeassistant.*` modules that
# tests/ injects. Only the two genuine third-party libs the production modules
# import are installed (see requirements-test.txt).
quality-gate:
name: Quality Gate
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.12"
cache: pip
cache-dependency-path: requirements-test.txt
- name: Install lightweight unit-suite dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements-test.txt
- name: Run project quality gate
run: python3 tools/quality_gate.py
# Failure boundary 2: the REAL Home Assistant lifecycle. The current lane
# runs on every change; the older compatibility lane remains a nightly and
# manually-triggered release check.
ha-current-tests:
name: HA Runtime Tests (2026.9)
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.14"
cache: pip
cache-dependency-path: requirements-test-ha-2026.9.txt
- name: Install Home Assistant test stack
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements-test-ha-2026.9.txt
- name: Show resolved Home Assistant stack
run: python3 -m pip list | grep -Ei '^(homeassistant|pytest|pytest-asyncio|pytest-socket|pytest-homeassistant-custom-component|bleak) '
- name: Run Home Assistant integration tests
# Explicit -c: the repo-root pytest.ini disables the Home Assistant
# plugin for the stub-based suite, which this suite must NOT inherit.
run: python3 -m pytest -c tests_ha/pytest.ini tests_ha -q
ha-compatibility-tests:
name: HA Compatibility Tests (2026.2)
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.13"
cache: pip
cache-dependency-path: requirements-test-ha-2026.2.txt
- name: Install Home Assistant test stack
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements-test-ha-2026.2.txt
- name: Show resolved Home Assistant stack
run: python3 -m pip list | grep -Ei '^(homeassistant|pytest|pytest-asyncio|pytest-socket|pytest-homeassistant-custom-component|bleak) '
- name: Run Home Assistant integration tests
run: python3 -m pytest -c tests_ha/pytest.ini tests_ha -q