Skip to content

Fix retrieval and retrieval token metrics to use unaswerable #639

Fix retrieval and retrieval token metrics to use unaswerable

Fix retrieval and retrieval token metrics to use unaswerable #639

Workflow file for this run

name: Unit Test
on:
push:
branches:
- main
pull_request:
branches:
- main
pull_request_target:
branches:
- main
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
JINAAI_API_KEY: ${{ secrets.JINAAI_API_KEY }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Upgrade pip
run: |
python3 -m pip install --upgrade pip
- name: Install gcc
run: |
sudo apt-get install gcc
- name: Install AutoRAG
run: |
pip install -e .
- name: Install dependencies
run: |
pip install pytest pytest-xdist pytest-asyncio
- name: delete tests package
run: python3 tests/delete_tests.py
- name: Run tests
run: |
python3 -m pytest -o log_cli=true --log-cli-level=INFO -n auto tests/