CI Pipeline Overview - amosproj/amos2025ss04-ai-driven-testing GitHub Wiki

Our Continuous Integration (CI) pipeline ensures code quality and enforces our team’s Git workflow policies.

πŸ§ͺ Quality Checks

The CI runs automatically on:

  • Every push

  • Every pull_request

It performs:

  • βœ… Code formatting check using black

  • 🧹 Linting using flake8

It uses a Conda environment defined in backend/environment.yml, provisioned via GitHub Actions using setup-miniconda.

πŸ”’ PR Branch Enforcement

  • Only pull requests from the development branch are allowed to target main.

  • If a contributor tries to create a PR to main from any other branch, the CI will fail with:

  • ❌ You can only create PRs to main from development

πŸ“ Workflow Files

.github/workflows/ci.yml – runs code quality checks

.github/workflows/enforce-pr-branch.yml – blocks PRs to main from non-development branches