Skip to content

ci: Add example validation to CI workflow. #215

@nedseb

Description

@nedseb

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

  • Add example validation step to CI workflow
  • CI passes on main after merge

Metadata

Metadata

Assignees

Labels

ciCI/CD, workflows, lintingreleased

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions