docs: for PR #5612 #4136
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |