yamltests.yml 996 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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.13']
  20. env:
  21. PYTHONPATH: .
  22. UV_SYSTEM_PYTHON: 1
  23. steps:
  24. - uses: actions/checkout@v4
  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: Install dependencies
  34. run: uv pip install -r requirements-dev.txt
  35. - name: Device configs check with pytest
  36. run: |
  37. pytest tests/test_device_config.py
  38. python util/untranslated_entities.py