yamltests.yml 963 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. steps:
  23. - uses: actions/checkout@v4
  24. with:
  25. fetch-depth: 0
  26. - name: Set up Python ${{ matrix.python-version }}
  27. uses: actions/setup-python@v5
  28. with:
  29. python-version: ${{ matrix.python-version }}
  30. - name: Install dependencies
  31. run: |
  32. python -m pip install --upgrade pip
  33. pip install -r requirements-dev.txt
  34. - name: Device configs check with pytest
  35. run: |
  36. pytest tests/test_device_config.py
  37. python util/untranslated_entities.py