Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ jobs:

- name: Build Docker image
run: |
docker build -t fireform:test .
docker build -t fireform:test -f docker/prod/Dockerfile .
19 changes: 18 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,27 @@ on:
push:
branches: [main]
pull_request:
branches: [main]
branches: [main,development]

jobs:
test:
runs-on: ubuntu-latest

services:
postgres:
image: postgres:16
env:
POSTGRES_USER: fireform
POSTGRES_PASSWORD: fireform
POSTGRES_DB: fireform
ports:
- 5432:5432
options: >-
--health-cmd "pg_isready -U fireform"
--health-interval 10s
--health-timeout 5s
--health-retries 5

steps:
- uses: actions/checkout@v4

Expand All @@ -33,5 +48,7 @@ jobs:
- name: Check for un-migrated model changes
env:
PYTHONPATH: .
DATABASE_URL: postgresql://fireform:fireform@localhost:5432/fireform
run: |
python -m alembic upgrade head
python -m alembic check
Loading