Skip to content

OgbujiPT 0.10.0 Phase 1: Foundation & Rearchitecture #479

OgbujiPT 0.10.0 Phase 1: Foundation & Rearchitecture

OgbujiPT 0.10.0 Phase 1: Foundation & Rearchitecture #479

Workflow file for this run

name: OgbujiPT CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12", "3.13"]
services:
mockdb:
image: pgvector/pgvector:pg16
env:
PG_DB: mock_db
PG_USER: mock_user
PG_PASSWORD: mock_password
ports: # give multiple ports for each python version to avoid conflicts
- 5433:5432
- 5432:5432
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
# pip install ruff pytest pytest-mock pytest-asyncio respx
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
# Install OgbujiPT itself, plus dependencies needed to run the full CI, with test suite
pip install -U ".[testall]"
- name: Lint with ruff
run: |
# Stop the build if there are Python syntax errors or undefined names
ruff check --select=E9,F63,F7,F82 --target-version=py312 --exclude **/*.ipynb .
# Run default ruff checks
ruff check --target-version=py312 --exclude **/*.ipynb .
- name: Test with pytest
env:
PG_HOST: 0.0.0.0
PG_DATABASE: mock_db
PG_USER: mock_user
PG_PASSWORD: mock_password
PG_PORT: 5432
run: |
pytest test/ -v