Add unit test for vec_db #2
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: Run Unit Test | |
on: | |
push: | |
branches: | |
- master | |
- feature/unit_test | |
paths-ignore: | |
- 'README.md' | |
- 'README_zh.md' | |
- 'Makefile' | |
- 'ruff.toml' | |
workflow_dispatch: | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements-full.txt | |
pip install "sqlite-vec==0.1.1" | |
- name: Test with pytest | |
run: | | |
pip install pytest pytest-cov coverage | |
coverage run -m pytest | |
coverage report |