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¶
- Run build/dependency installation from a clean environment.
- Run formatter/linter or static checks.
- Run automated tests.
- Intentionally break a test and confirm CI fails.
- Restore the code and confirm CI becomes green.
Evidence¶
Provide the workflow file and links to one failed and one successful workflow run.