Skip to content

Commit

Permalink
run tests with postgres available
Browse files Browse the repository at this point in the history
  • Loading branch information
livioribeiro committed Feb 9, 2024
1 parent af5fe28 commit b53c73a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
image: postgres:16.1-alpine
env:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: ${{ env.POSTGRES_DB }}
options: >-
--health-cmd pg_isready
--health-interval 10s
Expand All @@ -38,5 +39,5 @@ jobs:
- run: pip install poetry
- run: poetry install --with test --extras jinja --extras sqlalchemy --no-interaction
- env:
POSTGRES_URL: postgresql+asyncpg://postgres:postgres@postgres:5342/${{ env.POSTGRES_DB }}
POSTGRES_URL: postgresql+asyncpg://postgres:postgres@postgres:5432/${{ env.POSTGRES_DB }}
run: poetry run pytest

0 comments on commit b53c73a

Please sign in to comment.