diff --git a/tests/test_document_rag.py b/tests/test_document_rag.py index 97c5700..ddd0bfd 100644 --- a/tests/test_document_rag.py +++ b/tests/test_document_rag.py @@ -58,6 +58,9 @@ def test_document_rag_simulated(test_data_dir): @pytest.mark.skipif(not os.environ.get("OPENAI_API_KEY"), reason="OpenAI API key not available") +@pytest.mark.skipif( + os.environ.get("CI") == "true", reason="Skip OpenAI tests in CI to avoid API costs" +) def test_document_rag_openai(test_data_dir): """Test document_rag with OpenAI embeddings.""" with tempfile.TemporaryDirectory() as temp_dir: