How rhmt80/code-quality-devops works
Project type and purpose
• This is an open-source Python DevOps/Code-Quality pipeline.
• Its purpose is to automate static analysis (Flake8, Pylint), security scanning (Bandit), unit testing (Pytest) and upload metrics to SonarCloud via a GitHub Actions CI/CD workflow.
File structure
• Top-level directories & files:
• .github/workflows/build.yml – CI pipeline definition
• my_module/calculator.py – core Python module
• tests/test_calculator.py – unit tests
• requirements.txt, pyproject.toml, pytest.ini, .flake8, .pylintrc – dependency & tool configurations
• sonar-project.properties – SonarCloud configuration
• No “frontend” or “backend” layers—focus is on code analysis stages and results.
README for additional insights
• Workflow steps: checkout → setup Python (3.9/3.10/3.11) → install → lint → format → security scan → test → upload to SonarCloud.
• Artifacts: junit/ folder for test results, SonarCloud dashboards.
Final advice
• Where configuration files live and which step they drive.