Context
PR #213 adds tests/test_examples.py which validates all example files (syntax, newline, bare except, method calls against driver API). This test should run in CI alongside existing checks.
What to do
Add a step in .github/workflows/tests.yml (or create a new workflow) to run:
- name: Validate examples
run: python -m pytest tests/test_examples.py -v
This requires pytest (already installed for mock tests) and no hardware.
Prerequisites
Checklist
Context
PR #213 adds
tests/test_examples.pywhich validates all example files (syntax, newline, bare except, method calls against driver API). This test should run in CI alongside existing checks.What to do
Add a step in
.github/workflows/tests.yml(or create a new workflow) to run:This requires
pytest(already installed for mock tests) and no hardware.Prerequisites
tests/test_examples.py)Checklist