-
Notifications
You must be signed in to change notification settings - Fork 0
95 lines (80 loc) · 2.48 KB
/
Copy pathci.yml
File metadata and controls
95 lines (80 loc) · 2.48 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
name: CI
on:
push:
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Tests (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.12", "3.13"]
steps:
- uses: actions/checkout@v4
# The dashboard tests run cellar.html's real script under node.
# Without node they skip rather than fail, so install it explicitly
# to be sure CI actually exercises them.
- uses: actions/setup-node@v4
with:
node-version: "22"
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
- run: pip install -r requirements_test.txt
- name: Verify the JavaScript tests are not silently skipping
run: node --version
- run: python -m pytest -q
lint:
name: Ruff
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- run: pip install ruff==0.15.8
- run: ruff check --output-format=github .
mypy:
name: mypy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
# Home Assistant 2026.2 requires 3.13; the runtime matrix above still
# covers 3.12, which is what the integration has to keep working on.
python-version: "3.13"
cache: pip
# Home Assistant itself, not just mypy. Without it every homeassistant.*
# import resolves to Any, classes deriving from Any inherit Any for
# everything, and the job reports success over code it never checked.
- run: pip install -r requirements_mypy.txt
- run: mypy
hassfest:
name: hassfest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: home-assistant/actions/hassfest@master
hacs:
name: HACS
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: hacs/action@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
category: integration
# This domain is not registered in home-assistant/brands, which is
# expected for a personal integration. Remove this once (or if) a
# brands entry is submitted.
ignore: brands