From 424f46ffd742886438f70e414beb66f4d7f815ca Mon Sep 17 00:00:00 2001 From: "d.kovalenko" Date: Mon, 23 Nov 2026 18:12:28 +0300 Subject: [PATCH] CI: pyright is added --- .github/workflows/ci.yml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dca179b..1a71175 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,9 +46,33 @@ jobs: run: | validate-pyproject pyproject.toml + pyright: + runs-on: ubuntu-24.04 + needs: lint + strategy: + fail-fast: false + matrix: + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] + + steps: + - name: Checkout + uses: actions/checkout@v7 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v7 + with: + python-version: ${{ matrix.python-version }} + cache: 'pip' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install pyright + python -m pip install -r tests/requirements.txt + - name: Type check with pyright + run: pyright . + build-check: runs-on: ubuntu-latest - needs: lint + needs: pyright steps: - name: Checkout uses: actions/checkout@v7