Skip to content

Commit 9417cb1

Browse files
committed
even fancier
1 parent 869818b commit 9417cb1

File tree

2 files changed

+17
-50
lines changed

2 files changed

+17
-50
lines changed

.github/workflows/quality-gate.yml

Lines changed: 16 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -9,71 +9,38 @@ on:
99
jobs:
1010
quality-gate:
1111
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
check: [lint, format-check, type-check, security, django-check, test]
15+
fail-fast: false
1216

13-
services:
14-
postgres:
15-
image: pgvector/pgvector:pg16
16-
env:
17-
POSTGRES_DB: genealogy_extractor
18-
POSTGRES_USER: postgres
19-
POSTGRES_PASSWORD: postgres
20-
options: >-
21-
--health-cmd pg_isready
22-
--health-interval 10s
23-
--health-timeout 5s
24-
--health-retries 5
25-
ports:
26-
- 5432:5432
27-
28-
redis:
29-
image: redis:7-alpine
30-
options: >-
31-
--health-cmd "redis-cli ping"
32-
--health-interval 10s
33-
--health-timeout 5s
34-
--health-retries 5
35-
ports:
36-
- 6379:6379
37-
3817
steps:
3918
- uses: actions/checkout@v4
4019

41-
- name: Set up Python 3.12
42-
uses: actions/setup-python@v4
43-
with:
44-
python-version: '3.12'
45-
46-
- name: Install system dependencies
47-
run: |
48-
sudo apt-get update
49-
sudo apt-get install -y \
50-
tesseract-ocr \
51-
tesseract-ocr-eng \
52-
tesseract-ocr-nld \
53-
libtesseract-dev \
54-
poppler-utils
55-
56-
- name: Install Python dependencies
57-
run: |
58-
python -m pip install --upgrade pip
59-
pip install -r requirements.txt
60-
6120
- name: Set up environment variables
6221
run: |
6322
cat > .env << EOF
6423
DJANGO_SECRET_KEY=test-secret-key-for-ci
6524
DEBUG=False
66-
DB_HOST=localhost
25+
DB_HOST=db
6726
DB_NAME=genealogy_extractor
6827
DB_USER=postgres
6928
DB_PASSWORD=postgres
7029
DB_PORT=5432
71-
REDIS_HOST=localhost
30+
REDIS_HOST=redis
7231
REDIS_PORT=6379
7332
DJANGO_SUPERUSER_USERNAME=admin
7433
DJANGO_SUPERUSER_PASSWORD=admin
7534
DJANGO_SUPERUSER_EMAIL=admin@localhost
7635
EOF
7736
78-
- name: Run quality gate
79-
run: make quality-gate
37+
- name: Build and start services
38+
run: docker compose up -d --build
39+
40+
- name: Wait for services to be ready
41+
run: |
42+
echo "Waiting for services to be ready..."
43+
sleep 15
44+
45+
- name: Run ${{ matrix.check }}
46+
run: make ${{ matrix.check }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Genealogy Extractor
22

3-
[![Quality Gate](https://github.com/evanzanten/ai-genealogy/actions/workflows/quality-gate.yml/badge.svg)](https://github.com/evanzanten/ai-genealogy/actions/workflows/quality-gate.yml)
3+
[![Quality Gate](https://github.com/evz/ai-genealogy/actions/workflows/quality-gate.yml/badge.svg)](https://github.com/evz/ai-genealogy/actions/workflows/quality-gate.yml)
44

55
AI-powered genealogy digitization that processes Dutch family history books using OCR and LLM technology.
66

0 commit comments

Comments
 (0)