Skip to content

Commit dcbbbd1

Browse files
committed
feature: backend & frontend test workflows
1 parent 80d6971 commit dcbbbd1

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

.github/workflows/test.yml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
services:
1717
postgres:
1818
image: postgres
19+
ports:
20+
- 5432:5432
1921
env:
2022
POSTGRES_USER: pguser
2123
POSTGRES_PASSWORD: pgpassword
@@ -26,7 +28,7 @@ jobs:
2628
--health-timeout 5s
2729
--health-retries 5
2830
env:
29-
PG_HOST: postgres
31+
PG_HOST: localhost
3032
PG_USER: pguser
3133
PG_PASSWORD: pgpassword
3234
PG_DB: postgres
@@ -50,5 +52,26 @@ jobs:
5052
- name: Install dependencies
5153
run: poetry install --only=main,dev,test
5254

53-
- name: Run linting
55+
- name: Running tests
5456
run: poetry run pytest --cov llm_eval tests
57+
58+
frontend-tests:
59+
name: Frontend Tests
60+
runs-on: ubuntu-latest
61+
defaults:
62+
run:
63+
working-directory: ./frontend
64+
steps:
65+
- uses: actions/checkout@v4
66+
67+
- uses: actions/setup-node@v4
68+
with:
69+
node-version: '20.14'
70+
cache: 'npm'
71+
cache-dependency-path: './frontend/package-lock.json'
72+
73+
- name: Install dependencies
74+
run: npm ci
75+
76+
- name: Run tests
77+
run: npm run test:coverage

0 commit comments

Comments
 (0)