Skip to content

Updated project structure using uv and added GitHub actions for pytest #1

Updated project structure using uv and added GitHub actions for pytest

Updated project structure using uv and added GitHub actions for pytest #1

Workflow file for this run

name: Tests
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Cache uv
uses: actions/cache@v5
with:
path: |
~/.cache/uv
key: uv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('uv.lock') }}
- name: Sync dependencies
run: |
uv sync --dev
- name: Run tests
run: |
uv run pytest