Skip to content

Switched to pyright plus uv fixes #123

Switched to pyright plus uv fixes

Switched to pyright plus uv fixes #123

Workflow file for this run

name: tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }} with uv
uses: drivendataorg/[email protected]
with:
python-version: ${{ matrix.python-version }}
cache: 'packages'
- name: Install dependencies
run: |
uv sync
- name: Test with pytest
run: |
uv run pytest
- name: Test with pyright
if: ${{ matrix.python-version == '3.11' }}
# We do this as test rather than pre-commit, to ensure pyright sees all the dependencies
# and any stubs for them etc.
run: |
uv run pyright src tests