idaholab / MontePy

MontePy is the most user friendly Python library (API) to read, edit, and write MCNP input files.
https://www.montepy.org/
MIT License
32 stars 7 forks source link

Run Examples in CI. #578

Closed MicahGale closed 2 weeks ago

MicahGale commented 1 month ago

Description

This implemented testing of (almost) all example code blocks. This includes:

This also fixed all bugs found. The only code that wasn't tested is ones where the output are multiline statements. This is too complicated to work with sphinx-doctest.

Fixes #575, fixes #571

Checklist

MicahGale commented 1 month ago

Using doctest, sphinx-doctest, and papermill to run these tests.

MicahGale commented 1 month ago

TODO: figure out what to do with code-block

MicahGale commented 3 weeks ago

phmutest README.md --replmode --log https://stackoverflow.com/a/76924724

MicahGale commented 3 weeks ago

I'm thinking we should override the changelog test.