Skip to content

Rebuild the dashboard around drink-window filters #61

Rebuild the dashboard around drink-window filters

Rebuild the dashboard around drink-window filters #61

Workflow file for this run

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