open-atmos / devops_tests

pytest test routines asserting for GitHub issue-linked TODO labelling in the code, README link consistency and some Jupyter notebook sanity checks
GNU General Public License v3.0
0 stars 2 forks source link

test notebooks are free from errors or warnings #12

Closed slayoo closed 1 year ago

slayoo commented 1 year ago

something like this:

def test_no_errors_or_warnings_in_output(notebook):
    with open(notebook) as fp:
        nb = nbformat.read(fp, nbformat.NO_CONVERT)
        for cell in nb.cells:
            if cell.cell_type == "code":
                for output in cell.outputs:
                    if "name" in output and output["name"] == "stderr":
                        raise AssertionError(output["text"])
github-actions[bot] commented 1 year ago

Stale issue message

slayoo commented 1 year ago

addressed in #19