unifi_access/.gitea/workflows/test.yml
Adam Goldsmith d06ee8bede
All checks were successful
Run Unit Tests / test-package (3.12) (push) Successful in 51s
Run Unit Tests / test-package (3.11) (push) Successful in 54s
Run Unit Tests / test-package (3.13) (push) Successful in 50s
Add gitea workflow to run offline tests
2024-12-05 14:14:00 -05:00

21 lines
451 B
YAML

name: Run Unit Tests
on:
push:
jobs:
test-package:
strategy:
matrix:
python-version:
- "3.11"
- "3.12"
- "3.13"
runs-on: ubuntu-latest
container: ghcr.io/astral-sh/uv:0.5-python${{ matrix.python-version }}-alpine
steps:
- uses: taiki-e/checkout-action@v1
- name: Install the project
run: uv sync --all-extras --dev
- name: Run tests
run: uv run pytest