yamltests.yml 922 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. name: YAML tests
  2. on:
  3. workflow_dispatch:
  4. pull_request:
  5. paths:
  6. - 'custom_components/tuya_local/devices/*.yaml'
  7. push:
  8. paths:
  9. - 'custom_components/tuya_local/devices/*.yaml'
  10. jobs:
  11. tests:
  12. runs-on: ubuntu-latest
  13. permissions:
  14. checks: write
  15. contents: read
  16. pull-requests: write
  17. strategy:
  18. matrix:
  19. python-version: ['3.14']
  20. env:
  21. PYTHONPATH: .
  22. UV_SYSTEM_PYTHON: 1
  23. steps:
  24. - uses: actions/checkout@v6
  25. with:
  26. fetch-depth: 0
  27. - name: Set up Python ${{ matrix.python-version }}
  28. uses: actions/setup-python@v6
  29. with:
  30. python-version: ${{ matrix.python-version }}
  31. - name: Install uv
  32. uses: astral-sh/setup-uv@v7
  33. - name: Device configs check with pytest
  34. run: |
  35. uv run pytest tests/test_device_config.py
  36. uv run python util/untranslated_entities.py