Skip to content

Validate examples/README.md run commands in CI #361

@aallan

Description

@aallan

The examples/README.md documents run commands for all 28 examples (e.g. vera run examples/factorial.vera --fn factorial -- 10). These commands are not validated by CI — if an example is renamed, a function is removed, or the README table goes stale, CI won't catch it.

Proposal

Add a validation script (or extend check_examples.py) that:

  1. Parses the markdown tables in examples/README.md
  2. Extracts vera run commands from the Run column
  3. Verifies referenced .vera files exist
  4. If --fn is specified, verifies the function is exported in that file

Wire into CI alongside check_examples.py.

Context

Suggested by CodeRabbit on PR #358. The existing check_examples.py validates all examples pass vera check and vera verify, but does not validate the run instructions in the README.

Related: #358 (http.vera fix)

Metadata

Metadata

Assignees

No one assigned

    Labels

    ciCI/CD and GitHub ActionstoolingIssue around tooling built for the language (e.g. package managers, IDE plug-ins)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions