Skip to content

Commit

Permalink
feat: pytest flow (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasvinclav authored Jan 1, 2025
1 parent 6f8928c commit 8a0f4de
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Test

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres
ports:
- 5432:5432
env:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.13'

- name: Install Uv
run: pip install uv

- name: Run tests
env:
DATABASE_HOST: localhost
DATABASE_USER: postgres
DATABASE_PASSWORD: postgres
DATABASE_NAME: postgres
run: cd backend && uv run -- pytest .

0 comments on commit 8a0f4de

Please sign in to comment.