Skip to content

fix(light): reserve zero brightness as off #4117

fix(light): reserve zero brightness as off

fix(light): reserve zero brightness as off #4117

Workflow file for this run

name: Python tests
on:
workflow_dispatch:
pull_request:
paths:
- '**.py'
- 'pyproject.toml'
push:
paths:
- '**.py'
- 'pyproject.toml'
jobs:
tests:
runs-on: ubuntu-latest
permissions:
checks: write
contents: read
pull-requests: write
strategy:
matrix:
python-version: ['3.14']
env:
UV_SYSTEM_PYTHON: 1
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install libturbojpeg
- name: Full test with pytest
run: uv run pytest --cov=custom_components/tuya_local --cov-report term:skip-covered --junit-xml=test-results.xml
- name: Surface results
if: always()
uses: pmeier/pytest-results-action@main
with:
path: test-results.xml
summary: true
display-options: fEX
fail-on-empty: true
title: Test results