-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 936 Bytes
/
ci.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
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
continuous-integration:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python for backend
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install backend dependencies
run: |
python -m pip install --upgrade pip
pip install -r ./backend/requirements.txt
- name: Run backend tests with coverage
run: |
pytest --cov=backend/api --cov-report=term-missing backend/tests/test_main.py
- name: Install frontend dependencies
run: |
pip install -r ./frontend/requirements.txt
- name: Run frontend tests with coverage
run: |
pytest --cov=frontend/app --cov-report=term-missing frontend/tests/test_main.py