Skip to content

Commit

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

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres
ports:
- 5432:5432
env:
POSTGRES_DB: db
POSTGRES_USER: postgres
POSTGRES_PASSWORD: change-password
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
run: uv run -- pytest .

0 comments on commit d9e3125

Please sign in to comment.