Skip to content

Merge branch 'chore/ruff-clean' into develop #16

Merge branch 'chore/ruff-clean' into develop

Merge branch 'chore/ruff-clean' into develop #16

Workflow file for this run

name: CI
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
lint:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
# Pinned: an unpinned ruff silently picks up new default rules and
# turns CI red on commits that changed nothing.
- run: pip install ruff==0.16.4
- run: ruff check custom_components/
test:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install pytest pytest-asyncio
- run: pytest tests/ --tb=short
if: ${{ hashFiles('tests/**/*') != '' }}