Add integration tests and CI workflow#11
Draft
Copilot wants to merge 2 commits into
Draft
Conversation
Co-authored-by: harsha-simhadri <5590673+harsha-simhadri@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add unit tests and CI configuration
Add integration tests and CI workflow
Feb 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No CI existed to validate the RAG pipeline end-to-end across code check-ins. This adds a full integration test suite wired to GitHub Actions, covering Cosmos DB retrieval, Azure OpenAI endpoints, and the decomposed RAG pipeline.
New files
tests/test_questions.json– Sample Mars-themed questions driving the RAG pipeline teststests/conftest.py– Module-scoped fixtures (event_loop,config,llm_client,retriever); all tests auto-skip whenconfig.yamlis absenttests/test_integration.py– 15 integration tests across 5 classes:TestEmbeddingEndpointTestLLMEndpointTestVectorSearchTestFullTextSearchfulltext_k > 0TestRAGPipelineinitial_answer,rounds(reasoning traces), non-emptyfinal_answerfor all test questionsscripts/generate_config.py– Writesconfig.yamlfromconfig.yaml.exampleby substituting environment variables sourced from GitHub Secrets; avoids committing credentials.github/workflows/ci.yml– Runs on every PR and push tomain: installs deps, generatesconfig.yamlfrom secrets, runspytest tests/ -v --tb=short;GITHUB_TOKENscoped tocontents: readRequired GitHub Secrets
COSMOS_URI/COSMOS_KEYCOSMOS_DATABASE_NAMEdivdet)COSMOS_SOURCE1_CONTAINER/COSMOS_SOURCE2_CONTAINERLLM_ENDPOINT/LLM_API_KEY/LLM_MODELEMBED_ENDPOINT/EMBED_API_KEY/EMBED_MODEL/EMBED_DIMENSIONSOriginal prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.