Skip to content

Bump redis from 4.5.1 to 4.5.4 in /api #2027

Bump redis from 4.5.1 to 4.5.4 in /api

Bump redis from 4.5.1 to 4.5.4 in /api #2027

Workflow file for this run

name: Unit Test
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- name: Update apt-get
run: |
sudo apt-get update
- name: Install gcc
run: |
sudo apt-get install gcc
- name: Install poppler-utils
run: |
sudo apt-get install poppler-utils
- name: Install tesseract
run: |
sudo apt-get install tesseract-ocr
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Install Python 3.10
run: uv python install 3.10
- name: Install Venv
run: uv venv
- name: Install AutoRAG
run: |
uv pip install -e './autorag[all]'
- name: Install dependencies
run: |
uv pip install -r tests/requirements.txt
- name: Upgrade pyOpenSSL
run: |
uv pip install --upgrade pyOpenSSL
- name: Install NLTK and download model
run: |
uv pip install nltk
uv run python -c "import nltk; nltk.download('punkt_tab')"
uv run python -c "import nltk; nltk.download('averaged_perceptron_tagger_eng')"
- name: delete tests package
run: uv run python tests/delete_tests.py
- name: Run AutoRAG tests
env:
PYTHONPATH: ${PYTHONPATH}:./autorag
run: |
uv run python -m pytest -o log_cli=true --log-cli-level=INFO -n auto tests/autorag