Skip to content

doctests are not tested as part of CI #256

Description

@ugognw

The doctests are not run as part of the CI process despite a dedicated tox environment (doctests). Currently, all but 3 doctests fail on main (bdfb17a):

Doctest summary
===============
  107 tests
  104 failures in tests
    0 failures in setup code
    0 failures in cleanup code
build finished with problems, 18 warnings.

Both running the doctests as part of the CI (e.g., as a job step under the docs job in testing.yml):

...
   docs:
...
      - name: Test doctests
        run: tox -e doctests
...

and resolving the errors will help identify bad examples and keep examples up to date as the library changes.

PS: One can run the doctests in any given file using:

python -m doctest -v <FILE>

doctest directives can be specified using the doctest option-o (e.g., -o ELLIPSIS).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions