Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: rag-chunk-routing
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip
cache-dependency-path: rag-chunk-routing/pyproject.toml

- name: Install package + dev dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"

- name: Lint with ruff
run: ruff check .

- name: Run torch-free test suite
# The torch-dependent tests (chunking, retrieval, router, qa_*) download
# large HuggingFace models on first run; we restrict CI to the subset
# that runs offline, deterministically, in under a second.
run: |
pytest \
tests/test_metrics.py \
tests/test_oracle.py \
tests/test_config.py \
tests/test_splits.py \
tests/test_fusion.py \
tests/test_io.py \
tests/test_utils.py \
tests/test_corpus.py
341 changes: 0 additions & 341 deletions ML Notebooks/00_cnn_primitives.ipynb

This file was deleted.

Loading
Loading