Skip to content

refactor: remove litellm dependencies #133

refactor: remove litellm dependencies

refactor: remove litellm dependencies #133

Workflow file for this run

name: Test and Lint
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: ./.github/actions/setup-python
- name: Lint with Ruff
run: poetry run ruff check .
format-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: ./.github/actions/setup-python
- name: Format check with Ruff
run: poetry run ruff format --check .
pytest:
runs-on: ubuntu-latest
services:
ollama:
image: ghcr.io/bifrostlab/llm-assistant/ollama-tinydolphin-preloaded
ports:
- 11434:11434
steps:
- uses: actions/checkout@v4
- name: Setup LiteLLM proxy
run: docker run -d -p 4000:4000 -v ./tests/litellm_config.yaml:/app/proxy_server_config.yaml --name litellm ghcr.io/berriai/litellm:main-v1.29.1
- name: Set up Python
uses: ./.github/actions/setup-python
- name: Run pytest
run: poetry run pytest tests/
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: ./.github/actions/setup-python
- name: Typecheck with mypy
run: poetry run mypy .