Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
- uses: actions/checkout@v7

- name: Set up Python ${{ matrix.python-version }}
id: setup-python
uses: actions/setup-python@v7
with:
python-version: "${{ matrix.python-version }}"
Expand All @@ -34,7 +35,7 @@ jobs:
uses: actions/cache@v6
with:
path: .venv
key: venv-${{ hashFiles('**/uv.lock') }}
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/uv.lock') }}

- name: Cache prek
uses: actions/cache@v6
Expand Down
45 changes: 45 additions & 0 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Pytest

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
name: "Python ${{ matrix.python-version }}"
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12", "3.13", "3.14"]

steps:
- uses: actions/checkout@v7

- name: Set up Python ${{ matrix.python-version }}
id: setup-python
uses: actions/setup-python@v7
with:
python-version: "${{ matrix.python-version }}"

- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true

- name: Cache venv
uses: actions/cache@v6
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/uv.lock') }}

- name: Install dependencies
run: uv sync --all-groups

- name: Run pytest
run: uv run pytest -q