Skip to content

correct missed rtd config #473

correct missed rtd config

correct missed rtd config #473

name: Type Coverage and Linting
on:
push:
branches:
- main
pull_request:
branches:
- main
types: [opened, reopened, synchronize]
jobs:
check:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.x"]
name: "Type Coverage and Linting @ ${{ matrix.python-version }}"
steps:
- name: "Checkout Repository"
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup PDM @ ${{ matrix.python-version }}
uses: pdm-project/setup-pdm@v4
with:
python-version: ${{ matrix.python-version }}
cache: true
- name: Install deps @ ${{ matrix.python-version }}
run: |
pdm install --check --no-editable
- name: Activate venv @ ${{ matrix.python-version }}
run: |
echo "$(pdm info --where)/.venv/bin" >> $GITHUB_PATH
- name: "Run Pyright @ ${{ matrix.python-version }}"
uses: jakebailey/pyright-action@v2
with:
warnings: false
verify-types: "hondana"
ignore-external: true
annotate: ${{ matrix.python-version != '3.x' && 'all' || 'none' }}
- name: Lint
uses: astral-sh/ruff-action@v2