Skip to content

Lab 5 — Continuous Integration

Goal

Automatically verify every proposed change.

Minimum pipeline

name: test
on: [push, pull_request]
jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-python@v5
        with:
          python-version: "3.x"
      - run: pip install -r requirements.txt
      - run: pytest

Adapt the commands to your project language.

Tasks

  1. Run build/dependency installation from a clean environment.
  2. Run formatter/linter or static checks.
  3. Run automated tests.
  4. Intentionally break a test and confirm CI fails.
  5. Restore the code and confirm CI becomes green.

Evidence

Provide the workflow file and links to one failed and one successful workflow run.