https://github.com/IITC-College/cicd-lab06-secrets-and-envs
Goal
Build a GitHub Actions CI pipeline for a FastAPI + MongoDB app where the MongoDB connection URI is never hardcoded.
The pipeline should contain:
- unit — runs pytest with an in-memory MongoDB
- live — starts the real app and runs smoke tests against MongoDB Atlas
Part 0 — Run the Project Locally
- Download the ZIP
- Init a repo
- Create a virtual environment
- Activate it
- Install dependencies
- Run tests:
Expected result:
- All tests pass
- No MongoDB connection is required
Part 1 — Configure Real MongoDB Atlas Access
Create: