Update github workflow to use uv

This commit is contained in:
2026-02-05 20:20:29 -08:00
parent 7c54bf3823
commit 79b56d770f
2 changed files with 16 additions and 11 deletions

View File

@@ -5,21 +5,21 @@ on: [push]
jobs:
test:
runs-on: ubuntu-latest
container:
image: python:${{ matrix.python-version }}
strategy:
fail-fast: false
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Install uv and set the Python version
uses: astral-sh/setup-uv@v7
with:
python-version: ${{ matrix.python-version }}
- name: Install the project
run: uv sync --all-extras --dev
- name: Run tests
run: |
python -m pytest -v
run: uv run pytest tests