python-type-check.yml 982 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. name: Python Type-Check
  2. on:
  3. push:
  4. paths:
  5. - '.github/workflows/python-type-check.yml'
  6. - 'pyrightconfig.json'
  7. - '**.py'
  8. - '**/requirements*.txt'
  9. pull_request:
  10. paths:
  11. - '.github/workflows/python-type-check.yml'
  12. - 'pyrightconfig.json'
  13. - '**.py'
  14. - '**/requirements*.txt'
  15. concurrency:
  16. group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
  17. cancel-in-progress: true
  18. jobs:
  19. python-type-check:
  20. runs-on: ubuntu-latest
  21. name: pyright type-check
  22. steps:
  23. - name: Check out source repository
  24. uses: actions/checkout@v6
  25. - name: Set up Python environment
  26. uses: actions/setup-python@v6
  27. with:
  28. python-version: "3.11"
  29. pip-install: -r requirements/requirements-all.txt
  30. - name: Type-check with Pyright
  31. uses: jakebailey/pyright-action@v2
  32. with:
  33. version: 1.1.382
  34. level: warning
  35. warnings: true