Skip to content

Revise README for clarity and broader context #2

Revise README for clarity and broader context

Revise README for clarity and broader context #2

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
name: Lint and Test
runs-on: ubuntu-latest
services:
postgres:
image: postgres:15-alpine
env:
POSTGRES_USER: datapilot
POSTGRES_PASSWORD: test_password
POSTGRES_DB: datapilot_test_db
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
cache-dependency-path: |
requirements/base.txt
requirements/test.txt
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements/base.txt
pip install -r requirements/test.txt
pip install ruff==0.14.11
- name: Lint with ruff
run: ruff check .
- name: Run tests
env:
DATABASE_URL: postgresql://datapilot:test_password@localhost:5432/datapilot_test_db
SECRET_KEY: test-secret-key
ENVIRONMENT: test
LLM_PROVIDER: ollama
# ONNX Runtime optimization (prevent pthread errors in CI)
OMP_NUM_THREADS: "4"
ORT_DISABLE_CPU_EP_AFFINITY: "1"
ORT_DISABLE_THREAD_AFFINITY: "1"
OMP_WAIT_POLICY: "PASSIVE"
OMP_PROC_BIND: "false"
run: |
pytest tests/unit/ --cov=src --cov-report=term -v
- name: Check minimum coverage
run: |
coverage report --fail-under=25