Ultralytics YOLO27: Join the waitlist.
License YOLO
Back to Ultralytics Glossary

Continuous Integration (CI)

Continuous integration (CI) merges code changes often and tests each one automatically; ML pipelines add data checks and model quality gates.

Continuous integration (CI) is the practice of merging every developer's changes into a shared main branch frequently, at least daily, and automatically building and testing each change, so integration problems surface within minutes instead of at release time. Grady Booch proposed the term in 1991, Kent Beck made it a core practice of Extreme Programming in the late 1990s, and Martin Fowler's article Continuous Integration describes the workflow most teams still follow. In machine learning (ML), CI also checks data, training code, and model behavior, because a change can leave every unit test passing while lowering a model's accuracy.

How a CI Pipeline Works#

When a developer pushes a branch or opens a pull request, a CI service such as GitHub Actions, GitLab CI/CD, or Jenkins starts a fresh runner, checks out the code, installs dependencies, and runs a pipeline of jobs: linters and type checkers, unit tests, integration tests, and builds of packages or container images. Each job reports a status back to the pull request, and branch protection rules can block a merge until every required check passes. Pipelines often repeat the same tests across a matrix of operating systems and Python versions, and run the full suite again on the main branch after each merge. Speed is part of the practice: Beck's Extreme Programming set a ten-minute target for building the whole system and running every test, because a slower build gets run less often.

CI for Machine Learning#

ML projects add checks of their own. Data tests confirm that new training data matches its expected schema, that every label file parses, and that no image appears in both the training and validation splits, which would cause data leakage. A smoke test trains for one epoch on a tiny dataset to catch shape errors and crashes within minutes. Tests that compare model outputs fix random seeds and allow small numeric tolerances, since GPU kernels and data loading order can change floating-point results from run to run. A quality gate scores the model on a fixed validation set and fails the build if a metric such as mean average precision (mAP) drops below a floor, and export tests check that ONNX or TensorRT versions of the model still load and score like the original. Full training is slow and GPU runners are expensive, so teams typically run fast checks on every pull request and leave full retraining and model deployment to scheduled or main-branch runs, with versioning tools such as DVC letting each job fetch the exact dataset version it needs.

Ultralytics YOLO's benchmark mode works as such a gate: when verbose is set to a float such as 0.216, it raises an error if an export fails or if any exported format's mAP50-95 does not exceed that floor, and the Ultralytics repository's own CI uses it to test YOLO26 exports on Linux, macOS, and ARM runners. A minimal GitHub Actions workflow combines unit tests with that gate:

name: CI
on:
  pull_request:
  push:
    branches: [main]

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v7
      - uses: actions/setup-python@v6
        with:
          python-version: "3.13"
      - run: pip install ultralytics pytest
      - run: pytest tests/
      # Fail if the ONNX export breaks or its mAP50-95 is not above the 0.216 floor
      - run: yolo benchmark model=yolo26n.pt format=onnx imgsz=160 verbose=0.216

Every pull request and every push to main runs the job on a fresh Ubuntu runner. A failing unit test or an ONNX model that scores at or below the floor on the small COCO8 dataset turns the check red before the change can merge.

CI vs. CD, MLOps, and Continuous Training#

  • Continuous delivery (CD): Takes builds that pass CI and keeps them ready to release, often deploying them to a staging environment automatically. Continuous deployment goes one step further and ships every passing change to production.
  • MLOps: The wider discipline that combines CI and CD with data versioning, model deployment, monitoring, and retraining across the ML lifecycle.
  • Continuous training (CT): Retrains and redeploys a model automatically when new data arrives or monitoring detects drift. Google's MLOps maturity levels place automated retraining at level 1 and automated CI/CD for the training pipeline itself at level 2.

Explore solutions

Computer vision in sports

Computer vision in sports

Discover how Ultralytics YOLO powers sports vision with player and ball tracking, performance analytics, coaching insights, and athlete rehabilitation.
Learn more
Computer vision for aerial imagery

Computer vision for aerial imagery

Turn drone and aerial imagery into real-time insights for agriculture, aquaculture, conservation, and geospatial analysis with Ultralytics YOLO.
Learn more
Computer vision in aerospace

Computer vision in aerospace

Apply computer vision in aerospace with Ultralytics YOLO for aircraft inspection, runway FOD detection, airport ground operations, and composite defect detection.
Learn more
Computer vision in security

Computer vision in security

Protect every site with Ultralytics YOLO models. Vision AI powers perimeter monitoring, threat detection, license-plate recognition, and workplace safety.
Learn more
Computer vision in robotics

Computer vision in robotics

Power smarter machines with Ultralytics YOLO models. Vision AI in robotics drives autonomous navigation, perception, object tracking, and real-time control.
Learn more
Computer vision in logistics

Computer vision in logistics

Streamline logistics with Ultralytics YOLO models. Vision AI enables package inspection, sorting, vehicle tracking, and real-time warehouse safety monitoring.
Learn more
Computer vision in retail

Computer vision in retail

Reimagine retail with Ultralytics YOLO models. Vision AI powers inventory tracking, shelf monitoring, queue management, and smarter customer insights.
Learn more
Computer vision in healthcare

Computer vision in healthcare

Build healthcare solutions with Ultralytics YOLO models. Vision AI in healthcare powers faster medical imaging, smarter diagnostics, and patient monitoring.
Learn more
Computer vision in manufacturing

Computer vision in manufacturing

Optimize manufacturing with Ultralytics YOLO models. Vision AI drives quality control, defect detection, PPE compliance, and assembly line automation.
Learn more
Computer vision in automotive

Computer vision in automotive

Apply computer vision in automotive with Ultralytics YOLO models. Vision AI elevates road safety, driver assistance, and vehicle automation for smarter roads.
Learn more
Computer vision in agriculture

Computer vision in agriculture

Bring vision AI to smart agriculture with Ultralytics YOLO models. Power crop monitoring, livestock tracking, and precision farming for higher, smarter yields.
Learn more

Let's build the future of AI together!

Begin your journey with the future of machine learning