Skip to content

PR 1: LLM reranker module and unit tests #11

PR 1: LLM reranker module and unit tests

PR 1: LLM reranker module and unit tests #11

Workflow file for this run

# Run tests on every push / PR to main.
# BigQuery integration tests (tests/test_bigquery_integration.py) are skipped
# unless RUN_BQ_INTEGRATION=1 and credentials exist — not required in CI by default.
name: CI
on:
push:
branches: [main, sai]
pull_request:
branches: [main, sai]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install ruff
run: pip install ruff==0.15.11
- name: Ruff lint
run: ruff check .
- name: Ruff format check
run: ruff format --check .
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "pip"
cache-dependency-path: requirements.txt
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
env:
# Keep BigQuery integration tests skipped in CI (no ADC by default).
RUN_BQ_INTEGRATION: "0"
run: pytest tests/ -v