Phase 5 & 6: FastAPI REST API, Streamlit dashboard, GitHub Actions CI#11
Merged
Samarth2001 merged 1 commit intomainfrom Mar 2, 2026
Merged
Conversation
Phase 5 — REST API + Dashboard
- src/f1_predictor/api.py: FastAPI app with /health, /schedule/{year},
POST /predict/qualifying, POST /predict/race, POST /simulate endpoints;
lazy F1Predictor singleton; full OpenAPI docs at /docs
- dashboard/app.py: Streamlit dashboard consuming the API — race/qualifying
prediction tabs with ranked bar charts, simulation tab with win/podium
probability grouped bars and finishing-position heatmap
- requirements.txt: add fastapi==0.115.0, uvicorn[standard]==0.30.6,
streamlit==1.36.0
Phase 6 — CI pipeline
- .github/workflows/ci.yml: lint (black + isort), pytest matrix across
Python 3.10/3.11/3.12 with coverage upload, API smoke test job
Tests
- tests/unit/test_api.py: 16 new tests covering all endpoints, validation
errors (422), mock-out of F1Predictor; 117/117 passing
- tests/integration/test_pipeline.py: fix hardcoded Windows cwd paths
https://claude.ai/code/session_01ABwdavjJNECrDVtSsXVUWZ
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.
Phase 5 — REST API + Dashboard
Phase 6 — CI pipeline
https://claude.ai/code/session_01ABwdavjJNECrDVtSsXVUWZ