tests: fix and enable doctests (#2546)
* fix doctest * Update cibuildwheel/oci_container.py Co-authored-by: Joe Rickerby <joerick@mac.com> * Update cibuildwheel/oci_container.py Co-authored-by: Joe Rickerby <joerick@mac.com> * Update cibuildwheel/oci_container.py Co-authored-by: Joe Rickerby <joerick@mac.com> * Add xdoctest to CI * Add doctests to run tests * Replace test map with new native method * Forgot key for arm64 * Allow doctests to be filtered on circleci --------- Co-authored-by: Joe Rickerby <joerick@mac.com>
This commit is contained in:
co-authored by
Joe Rickerby
parent
8db3538534
commit
5952330610
@@ -58,6 +58,7 @@ def tests(session: nox.Session) -> None:
|
||||
session.run("pytest", *session.posargs)
|
||||
else:
|
||||
unit_test_args = ["--run-docker"] if sys.platform.startswith("linux") else []
|
||||
session.run("pytest", "cibuildwheel") # run doctests
|
||||
session.run("pytest", "unit_test", *unit_test_args)
|
||||
session.run("pytest", "test", "-x", "--durations", "0", "--timeout=2400", "test")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user