Skip to content

Integrate Instructor Library for easy LLM interaction #30

Integrate Instructor Library for easy LLM interaction

Integrate Instructor Library for easy LLM interaction #30

name: libsql graph db Workflow
on:
pull_request:
branches: [main]
paths: ['libsql_graph_db/**']
jobs:
check:
runs-on: ubuntu-latest # host's operating system
steps: # each job consists of 1+ steps
- name: Checkout commit # download the code from triggering commit
uses: actions/checkout@v4
- name: Set up Python and Poetry
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Install dependencies
run: poetry install --no-interaction --no-root
- name: Format with Ruff
run: poetry run ruff format --check .
- name: Lint with Ruff
run: poetry run ruff check -- .
- name: Type check
run: poetry run python -m mypy .
test:
runs-on: ubuntu-latest
needs: check
steps: # each job consists of 1+ steps
- name: Checkout commit # download the code from triggering commit
uses: actions/checkout@v4
- name: Set up Python and Poetry
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Install dependencies
run: |
cd libsql_graph_db
poetry install --no-interaction --no-root
- name: Test with pytest
run: |
cd libsql_graph_db
poetry run pytest -vvv