Initial commit #4
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: Tests | |
on: | |
push: | |
branches: '*' | |
pull_request: | |
branches: '*' | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install the latest version of uv | |
uses: astral-sh/setup-uv@v1 | |
with: | |
version: "latest" | |
- name: Test with Python ${{ matrix.python-version }} | |
run: | | |
uv run --python ${{ matrix.python-version }} pytest tests | |
- name: Ruff | |
run: | | |
uvx ruff check | |
uvx ruff format --check | |
- name: Test build | |
run: uv build |