Skip to content

Added uv

Added uv #80

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Python package
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12", "3.13"]
env:
GITHUB_ACTION: 1
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v3
with:
version: "latest"
- name: Install dependencies
run: |
uv sync --python ${{ matrix.python-version }} --all-extras
- name: Test with pytest
run: |
uv run pytest --doctest-glob=README.md tests/