Closed
Description
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/quickstart.html#exporting
- https://cadquery.readthedocs.io/en/latest/primer.html#assemblies
- https://cadquery.readthedocs.io/en/latest/assy.html#final-result
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.
- Should we add doctest to our CI?
- I don't think Sphinx doctest fits neatly in any of our current pipelines, should we make a new one for doctest?
- I'm most comfortable with Github's own actions/CI/pipelines/whatever it's called today. Should I write a workflow for this?