Skip to content

Mock OpenAI and Milvus server for test_vectordatabase and test_vectordata_host #53

Mock OpenAI and Milvus server for test_vectordatabase and test_vectordata_host

Mock OpenAI and Milvus server for test_vectordatabase and test_vectordata_host #53

Workflow file for this run

name: biochatter Continuous Integration
on: [pull_request, push]
jobs:
test:
runs-on: ubuntu-latest
environment: 'Test CI'
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install Docker
run: |
sudo apt remove containerd.io
sudo apt install -y docker.io
- name: Install Docker Compose
run: |
sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Install dependencies
run: |
poetry install
poetry install -E 'podcast xinference'
- name: Run tests
run: |
poetry run pytest test --ignore=./volumes