fix: handle MPS memory issues in CI tests

- Use smaller MiniLM-L6-v2 model (384 dimensions) for README tests in CI
- Skip other memory-intensive tests in CI environment
- Add minimal CI tests that don't require model loading
- Set CI environment variable and disable MPS fallback
- Ensure README examples always run correctly in CI
This commit is contained in:
Andy Lee
2025-07-28 15:26:23 -07:00
parent c246cb4a01
commit 16c833da86
5 changed files with 92 additions and 5 deletions

View File

@@ -17,6 +17,9 @@ def test_data_dir():
return Path("examples/data")
@pytest.mark.skipif(
os.environ.get("CI") == "true", reason="Skip model tests in CI to avoid MPS memory issues"
)
def test_main_cli_simulated(test_data_dir):
"""Test main_cli with simulated LLM."""
with tempfile.TemporaryDirectory() as temp_dir: