Skip to content

add pre-commit workflow #4

add pre-commit workflow

add pre-commit workflow #4

Workflow file for this run

name: pytest
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Set up Python from .python-version
uses: actions/setup-python@v5
with:
python-version-file: ".python-version"
- name: Install dependencies
run: uv sync
- name: Run tests
run: uv run python -m pytest