ci: initial version of pyright workflow

This commit is contained in:
Jann Stute
2025-11-26 13:12:37 +01:00
parent 88d0b47a86
commit edbe607cec
2 changed files with 36 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
---
name: Pyright
on: [push, pull_request]
jobs:
pyright:
name: Run Pyright
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup reviewdog
uses: reviewdog/action-setup@v1
with:
reviewdog_version: latest
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
- name: Install Python dependencies
run: |
python -m pip install --upgrade uv
uv pip install --system .[pyright]
- name: Execute Pyright
uses: jordemort/action-pyright@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
lib: true