Skip to content

ci: Add example validation step to test workflow.#217

Merged
nedseb merged 1 commit intomainfrom
ci/validate-examples
Mar 23, 2026
Merged

ci: Add example validation step to test workflow.#217
nedseb merged 1 commit intomainfrom
ci/validate-examples

Conversation

@nedseb
Copy link
Copy Markdown
Contributor

@nedseb nedseb commented Mar 23, 2026

Closes #215

Summary

Add example file validation as a CI step in the test workflow. Runs after mock tests using the same Python environment.

What it validates

For all 51 example files in lib/*/examples/:

  • Valid Python syntax
  • Final newline present
  • No bare except: (project convention)
  • Method calls on driver objects match actual driver API

Change

Added one step to .github/workflows/tests.yml:

- name: "📋 Validate examples"
  run: python -m pytest tests/test_examples.py -v

@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@nedseb nedseb requested a review from Copilot March 23, 2026 08:03
@nedseb nedseb added the enhancement New feature or request label Mar 23, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates CI to run the repository’s example-file validation tests as part of the existing “Mock Tests” workflow, ensuring example scripts stay syntactically valid and aligned with driver APIs.

Changes:

  • Add a new CI step to run pytest tests/test_examples.py after mock tests in .github/workflows/tests.yml.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@nedseb nedseb merged commit 2b542cc into main Mar 23, 2026
8 checks passed
@nedseb nedseb deleted the ci/validate-examples branch March 23, 2026 08:08
@semantic-release-updater
Copy link
Copy Markdown

🎉 This PR is included in version 0.0.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: Add example validation to CI workflow.

2 participants