-
Notifications
You must be signed in to change notification settings - Fork 46
46 lines (34 loc) · 1.01 KB
/
unittests.yml
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
name: Unittests
on:
pull_request:
branches: [ "main" ]
types: ["opened", "reopened", "edited"]
jobs:
unittests:
name: Unit Tests
runs-on: ubuntu-latest
env:
LOCAL_VECTOR_DB: qdrant
steps:
- uses: actions/checkout@v4
- name: Setup Python # Set Python version
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies - Api
run: |
python -m pip install --upgrade pip
pip install -r src/api/requirements.txt
- name: Run Api unittests
run: |
cd src
python -m unittest api.tests.test_app
- name: Install depencies - Worker
run: |
python -m pip install --upgrade pip
pip install -r src/worker/requirements.txt
- name: Run Worker/Vdb_worker unittests
run: |
cd src
python -m unittest worker.tests.test_worker
python -m unittest worker.tests.test_vdb_upload_worker