Skip to content

ci(pre-commit): autoupdate hook versions #309

ci(pre-commit): autoupdate hook versions

ci(pre-commit): autoupdate hook versions #309

Workflow file for this run

name: Pyright
on: [push]
jobs:
pyright:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
fail-fast: false
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Install dependencies
run: pip install -r requirements.txt -r dev-requirements.txt
- name: Set up pyright
run: echo "PYRIGHT_VERSION=$(python -c 'import pyright; print(pyright.__pyright_version__)')" >> $GITHUB_ENV
- name: Run pyright (Linux)
uses: jakebailey/pyright-action@v2
with:
version: ${{ env.PYRIGHT_VERSION }}
python-version: ${{ matrix.python-version }}
python-platform: Linux
warnings: true
- name: Run pyright (Windows)
uses: jakebailey/pyright-action@v2
if: success() || failure()
with:
version: ${{ env.PYRIGHT_VERSION }}
python-version: ${{ matrix.python-version }}
python-platform: Windows
no-comments: true
warnings: true