Skip to content

Commit 752d0d2

Browse files
authored
Merge pull request #593 from chetanr25/ci_failure_fix
CI CD test failure fixed
2 parents d99f648 + d3d5da4 commit 752d0d2

2 files changed

Lines changed: 19 additions & 2 deletions

File tree

.github/workflows/docker-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ jobs:
1515

1616
- name: Build Docker image
1717
run: |
18-
docker build -t fireform:test .
18+
docker build -t fireform:test -f docker/prod/Dockerfile .

.github/workflows/tests.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,27 @@ on:
44
push:
55
branches: [main]
66
pull_request:
7-
branches: [main]
7+
branches: [main,development]
88

99
jobs:
1010
test:
1111
runs-on: ubuntu-latest
1212

13+
services:
14+
postgres:
15+
image: postgres:16
16+
env:
17+
POSTGRES_USER: fireform
18+
POSTGRES_PASSWORD: fireform
19+
POSTGRES_DB: fireform
20+
ports:
21+
- 5432:5432
22+
options: >-
23+
--health-cmd "pg_isready -U fireform"
24+
--health-interval 10s
25+
--health-timeout 5s
26+
--health-retries 5
27+
1328
steps:
1429
- uses: actions/checkout@v4
1530

@@ -33,5 +48,7 @@ jobs:
3348
- name: Check for un-migrated model changes
3449
env:
3550
PYTHONPATH: .
51+
DATABASE_URL: postgresql://fireform:fireform@localhost:5432/fireform
3652
run: |
53+
python -m alembic upgrade head
3754
python -m alembic check

0 commit comments

Comments
 (0)