mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: init unit tests
This commit is contained in:
parent
5bbf15ee41
commit
44f4a08b5a
16 changed files with 1752 additions and 9 deletions
31
.github/workflows/api-tests.yaml
vendored
Normal file
31
.github/workflows/api-tests.yaml
vendored
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue