Skip to content

POINTTAPI: optional entity discovery, switch value fixes, and translation updates #146

POINTTAPI: optional entity discovery, switch value fixes, and translation updates

POINTTAPI: optional entity discovery, switch value fixes, and translation updates #146

Workflow file for this run

name: CI
on:
push:
pull_request:
jobs:
build:
name: Test & Lint
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f unittests/requirements.txt ]; then pip install -r unittests/requirements.txt; fi
# tzdata only — bosch-thermostat-client is pinned in
# unittests/requirements.txt to match manifest.json (==0.28.2).
# Installing it unpinned here would silently upgrade past that pin.
pip install tzdata
- name: Lint with Ruff
run: |
# Check for syntax errors or bad style
ruff check --exclude deric-bosch-client --exclude unittests --exclude test_pointtapi_oauth.py --exclude test_pointtapi_playwright.py .
- name: Run Tests
run: |
python3 -m pytest --tb=short -q unittests --override-ini="asyncio_mode=auto"