-
Notifications
You must be signed in to change notification settings - Fork 2
27 lines (26 loc) · 740 Bytes
/
main.yml
File metadata and controls
27 lines (26 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: testing
on: [push]
jobs:
backend-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
- run: cd backend && pip install -r requirements.dev.txt
- run: python3 -m nltk.downloader punkt_tab
- run: cd backend && pytest
- run: cd backend && ruff check .
frontend-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- run: npm install -g pnpm
- run: pnpm install -C ./frontend
- run: pnpm run -C ./frontend lint
- run: pnpm run -C ./frontend test