-
Notifications
You must be signed in to change notification settings - Fork 93
55 lines (46 loc) · 1.05 KB
/
test.yaml
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Test run
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
backend:
# Linux runner
runs-on: ubuntu-latest
# Container image that the job will run in
container: python:3.10
defaults:
run:
working-directory: ./backend
# Service containers
services:
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: pip install -r requirements.txt
- name: Install requirements (ffmpeg)
run: |
apt-get update
apt-get install -y ffmpeg
- name: Test with pytest
run: |
pytest
frontend:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./frontend
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build