Skip to content

Switched project to uv for testing/packaging #121

Switched project to uv for testing/packaging

Switched project to uv for testing/packaging #121

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/setup-python-uv-action@v1.0.0
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