29 lines
475 B
YAML
29 lines
475 B
YAML
name: pytest
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
jobs:
|
|
pytest:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install uv
|
|
run: |
|
|
curl -Ls https://astral.sh/uv/install.sh | sh
|
|
echo "$HOME/.local/bin" >> $GITHUB_PATH
|
|
|
|
- name: Sync dependencies
|
|
run: |
|
|
uv sync --group dev
|
|
|
|
- name: Run pytest
|
|
run: |
|
|
uv run pytest -q
|