Skip to content

chore: remove deprecated code #882

chore: remove deprecated code

chore: remove deprecated code #882

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Python Build, Lint, Test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
- name: Install dependencies
run: |
if [[ $(python -c "import sys; print(sys.version_info[:2] >= (3, 12))") == "True" ]]; then
poetry install --no-interaction -E llama-index -E localserver -E langchain -E lm-eval
else
poetry install --no-interaction --all-extras
fi
- name: Lint with pre-commit
run: |
poetry run pre-commit install
poetry run pre-commit run --all-files
- name: Tests (unit / integration / extension)
run: poetry run pytest -m 'unit or integration or extension' --cov-report=lcov:coverage/lcov.info --cov=genai
env:
GENAI_API: ${{ vars.DUMMY_GENAI_API }}
GENAI_KEY: ${{ vars.DUMMY_GENAI_KEY }}
- name: Coveralls
uses: coverallsapp/github-action@v2