@@ -15,75 +15,9 @@ permissions:
1515 packages : write
1616
1717jobs :
18- # Frontend tests - equivalent to ui-test in GitLab
19- ui-test :
20- runs-on : ubuntu-latest
21- steps :
22- - uses : actions/checkout@v4
23-
24- - uses : actions/setup-node@v4
25- with :
26- node-version : ' 20'
27- cache : ' npm'
28- cache-dependency-path : frontend/package-lock.json
29-
30- - name : Install dependencies
31- working-directory : frontend
32- run : npm ci
33-
34- - name : Run tests with coverage
35- working-directory : frontend
36- run : npm run test:coverage
37-
38- # Backend tests - equivalent to pytest in GitLab
39- pytest :
40- runs-on : ubuntu-latest
41-
42- services :
43- postgres :
44- image : postgres:17.4
45- env :
46- POSTGRES_USER : pguser
47- POSTGRES_PASSWORD : pgpassword
48- POSTGRES_DB : postgres
49- options : >-
50- --health-cmd pg_isready
51- --health-interval 10s
52- --health-timeout 5s
53- --health-retries 5
54- ports :
55- - 5432:5432
56-
57- env :
58- PG_HOST : localhost
59- PG_USER : pguser
60- PG_PASSWORD : pgpassword
61- PG_DB : postgres
62- PG_PORT : 5432
63- LLM_EVAL_ENCRYPTION_KEY : 34614d1d76c0e2d2e94f87948f2325324a352a6948963c0ce20e9691b9ea1559
64-
65- steps :
66- - uses : actions/checkout@v4
67-
68- - uses : actions/setup-python@v5
69- with :
70- python-version : ' 3.12'
71-
72- - name : Install Poetry
73- run : pip install --root-user-action=ignore poetry --quiet
74-
75- - name : Install dependencies
76- working-directory : backend
77- run : poetry install --quiet
78-
79- - name : Run tests with coverage
80- working-directory : backend
81- run : poetry run pytest --cov llm_eval tests
82-
8318 # Build frontend container - migrated from build-container-ui
8419 build-container-ui :
8520 runs-on : ubuntu-latest
86- needs : [pytest, ui-test]
8721 steps :
8822 - uses : actions/checkout@v4
8923
12458 # Build backend container - migrated from build-container-backend
12559 build-container-backend :
12660 runs-on : ubuntu-latest
127- needs : [pytest, ui-test]
12861 steps :
12962 - uses : actions/checkout@v4
13063
0 commit comments