feat: init unit tests

This commit is contained in:
swve 2025-07-27 19:56:56 +02:00
parent 5bbf15ee41
commit 44f4a08b5a
16 changed files with 1752 additions and 9 deletions

31
.github/workflows/api-tests.yaml vendored Normal file
View file

@ -0,0 +1,31 @@
name: API Tests
on:
push:
branches:
- dev
paths:
- "apps/api/**"
pull_request:
paths:
- "apps/api/**"
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup uv
uses: astral-sh/setup-uv@v1
with:
version: "latest"
- name: Install dependencies
run: |
cd apps/api
uv sync
- name: Run tests
run: |
cd apps/api
uv run pytest