Skip to content

Adding Sphinx doctest to our CI #800

Closed
@marcus7070

Description

@marcus7070

I'm trying to write up this example into our docs. If I simply cut and paste code into the RST I'm concerned about it going out of date and I'll forget about it.

So I'd like to use Sphinx's doctest directive. I think doctest could also be applied to other examples in the docs, like

https://cadquery.readthedocs.io/en/latest/importexport.html in particular lists a lot of arguments, it would be nice to inspect function signatures with doctest and make sure they match. You can hide the test input and output, so the HTML would still look the same.

  1. Should we add doctest to our CI?
  2. I don't think Sphinx doctest fits neatly in any of our current pipelines, should we make a new one for doctest?
  3. I'm most comfortable with Github's own actions/CI/pipelines/whatever it's called today. Should I write a workflow for this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions