Type checker compatibility tests #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Type checker compatibility tests | |
on: | |
- workflow_dispatch | |
jobs: | |
mypy_compat: | |
strategy: | |
fail-fast: false | |
matrix: | |
myver: | |
- 1.11.0 | |
- 1.11.1 | |
- 1.11.2 | |
- 1.12.0 | |
- 1.12.1 | |
- 1.13.0 | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
cache: 'pip' | |
- uses: astral-sh/setup-uv@v3 | |
with: | |
version: '0.4.27' | |
enable-cache: true | |
cache-dependency-glob: | | |
**/pyproject.toml | |
- name: Install requirements | |
run: | | |
uv pip install -r pyproject.toml | |
uv pip install 'mypy == ${{ matrix.myver }}' | |
- name: Perform check on source | |
run: mypy lxml-stubs | |
pyright_compat: | |
strategy: | |
fail-fast: false | |
matrix: | |
prver: | |
- 1.1.351 | |
- 1.1.352 | |
- 1.1.353 | |
- 1.1.354 | |
- 1.1.355 | |
- 1.1.356 | |
- 1.1.357 | |
- 1.1.358 | |
- 1.1.359 | |
- 1.1.360 | |
- 1.1.361 | |
- 1.1.362 | |
- 1.1.363 | |
- 1.1.364 | |
- 1.1.365 | |
- 1.1.366 | |
- 1.1.367 | |
- 1.1.368 | |
- 1.1.369 | |
- 1.1.370 | |
- 1.1.371 | |
- 1.1.372 | |
- 1.1.373 | |
- 1.1.374 | |
- 1.1.375 | |
- 1.1.376 | |
- 1.1.377 | |
- 1.1.378 | |
- 1.1.379 | |
- 1.1.380 | |
- 1.1.381 | |
- 1.1.382 | |
- 1.1.383 | |
- 1.1.384 | |
- 1.1.385 | |
- 1.1.386 | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
cache: 'pip' | |
- uses: astral-sh/setup-uv@v3 | |
with: | |
version: '0.4.27' | |
enable-cache: true | |
cache-dependency-glob: | | |
**/pyproject.toml | |
- name: Install requirements | |
run: | | |
uv pip install -r pyproject.toml | |
- uses: jakebailey/pyright-action@v2 | |
with: | |
version: ${{ matrix.prver }} |