Add k8 #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |