add pytest workflow
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
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
|
||||
Reference in New Issue
Block a user