chore: remove deprecated code #882
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
# 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 |