A FastAPI application that listens to webhook events, triggers Python syntax checks, runs tests, and sends notifications.
POST /webhook
This endpoint listens for GitHub push events and triggers the following actions:
Returns: A JSON response with syntax check and test results.
The compilation.py module handles the compilation process for a given branch:
Returns: Compilation logs and results.
The testing.py module runs tests using pytest:
Returns: A report of test results.
POST /send-notification
Sends an email notification after a CI build event with details such as author, branch, commit, and build status.
Parameters:
Returns: Confirmation of email sent or an error message.