This project automates the collection, visualization, and security validation of DevOps productivity metrics (DORA) using GitHub Actions and Python.
- Automated CI/CD pipeline (Build → Test → Security Scan → Deploy)
- Automatic logging of deployments to metrics.csv
- DORA metrics calculation via Python
- Graph visualization of Deployment Frequency
- Real-time project badges (status indicators)
- Build – Simulated build step
- Test – Verifies basic functionality
- Security Scan – Checks for vulnerabilities before deployment
- Deploy – Copies and logs deployment
- Metrics Update – Appends data to metrics.csv
calculate_metrics.py→ Calculates DORA metricsvisualize_metrics.py→ Generates charts for deployment frequency
- Clone your GitHub repo.
- Extract these files into the repo folder.
- Open in VS Code → run the following once:
git init git add . git commit -m "init: project scaffold" git branch -M main git remote add origin https://github.com/<your-username>/devops-metrics-demo.git git push -u origin main
- Enable GitHub Actions → check the Actions tab.
To simulate multiple runs:
echo "<p>Version update</p>" >> index.html
git add index.html
git commit -m "feat: update version"
git pushTo simulate a failed deploy:
git commit -m "test: simulate [fail]" --allow-empty
git pushRun:
python calculate_metrics.py
python visualize_metrics.pyThen include deployment_frequency_chart.png in your report.
Each run now includes a Security Scan (Simulated) stage to validate code before deployment — aligning the project with DevSecOps principles.
- Actions tab showing multiple runs (green + red)
- Security Scan stage log output
- metrics.csv content on GitHub
- Python DORA metrics output
- Deployment frequency chart
- README badges view
- GitHub Actions Documentation – https://docs.github.com/actions
- DORA Metrics Guide – Google Cloud DevOps Research