mirror of
https://github.com/run-llama/llama-hub.git
synced 2026-07-01 20:44:00 -04:00
dabcdaae28
* feat: Added where and where_document filters. * feat: Several improvements - Added good amount of tests - Fixed an issue where no results were returned - Fixed an issue where embeddings are not returned by default and need `include` to return them - Added Chroma client dependency injection - Fixed iteration to work with multiple results - Fixed some typing issues * fix: Adding chromadb in test_requirements.txt * fix: Added test_requirements.txt to test workflow. * fix: Running the pip install from within poetry run
33 lines
843 B
YAML
33 lines
843 B
YAML
name: Run Tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
# You can use PyPy versions in python-version.
|
|
# For example, pypy-2.7 and pypy-3.8
|
|
matrix:
|
|
python-version: ["3.9", "3.8"]
|
|
poetry-version: [1.5.1]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Run image
|
|
uses: abatilo/actions-poetry@v2.0.0
|
|
with:
|
|
poetry-version: ${{ matrix.poetry-version }}
|
|
- name: Install deps
|
|
run: |
|
|
poetry install
|
|
poetry run pip install -r test_requirements.txt
|
|
- name: Run testing
|
|
run: poetry run pytest tests |