Skip to content

Fix a bug when autocut was True and len(distances) was <=1; #42

Fix a bug when autocut was True and len(distances) was <=1;

Fix a bug when autocut was True and len(distances) was <=1; #42

name: MiniVectorDB
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest-cov
- name: Test with pytest
run: |
pytest --cov=minivectordb --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}