Skip to content

Commit 8a0f4de

Browse files
authored
feat: pytest flow (#38)
1 parent 6f8928c commit 8a0f4de

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/test.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
services:
9+
postgres:
10+
image: postgres
11+
ports:
12+
- 5432:5432
13+
env:
14+
POSTGRES_DB: postgres
15+
POSTGRES_USER: postgres
16+
POSTGRES_PASSWORD: postgres
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
21+
- name: Set up Python
22+
uses: actions/setup-python@v5
23+
with:
24+
python-version: '3.13'
25+
26+
- name: Install Uv
27+
run: pip install uv
28+
29+
- name: Run tests
30+
env:
31+
DATABASE_HOST: localhost
32+
DATABASE_USER: postgres
33+
DATABASE_PASSWORD: postgres
34+
DATABASE_NAME: postgres
35+
run: cd backend && uv run -- pytest .

0 commit comments

Comments
 (0)