Pin tsx 4.15.8 #512
GitHub Actions / Test report - Python 3.12 + typedoc 0.25
failed
Aug 27, 2024 in 0s
Test report - Python 3.12 + typedoc 0.25 ❌
❌ test-results.xml
124 tests were completed in 36s with 121 passed, 1 failed and 2 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
pytest | 121✔️ | 1❌ | 2✖️ | 36s |
❌ pytest
tests.test_build_ts.test_build_ts.TestTextBuilder
✔️ test_autoclass_constructor
✔️ test_autoclass_order
✔️ test_autoclass_star_order
✔️ test_abstract_extends_and_implements
✔️ test_exported_from
✔️ test_constructorless_class
✔️ test_optional_members
✔️ test_deprecated
✔️ test_example
✔️ test_async
✔️ test_symbol
✔️ test_predicate
✔️ test_get_set
✔️ test_inherited_docs
✔️ test_automodule
tests.test_build_ts.test_build_ts.TestHtmlBuilder
✔️ test_extends_links
✔️ test_implements_links
✔️ test_extends_type_param_links
✔️ test_xrefs
✔️ test_sphinx_link_in_description
✔️ test_autosummary
tests.test_common_mark.test_common_mark.Tests
✔️ test_build_success
tests.test_dot_dot_paths.test_dot_dot_paths.Tests
✔️ test_dot_dot
tests.test_incremental
✖️ test_incremental_ts
tests.test_init
✔️ test_relative_path_root
tests.test_ir
✔️ test_default
✔️ test_missing_default
✔️ test_ir_serialization[x0]
✔️ test_ir_serialization[x1]
✔️ test_ir_serialization[x2]
✔️ test_ir_serialization[x3]
✔️ test_ir_serialization[x4]
✔️ test_ir_serialization[x5]
✔️ test_ir_serialization[x6]
✔️ test_ir_serialization[x7]
✔️ test_ir_serialization[x8]
tests.test_parsers
✔️ test_escapes
✔️ test_relative_dirs
tests.test_paths
✔️ test_global
✔️ test_node_modules1
✔️ test_node_modules2
✔️ test_env1
✔️ test_env2
✔️ test_err
❌ test_global_install
tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f2165a1ee70>, _basetemp=PosixPath('/tmp/pytest-of-runner/pytest-0'), _retention_count=3, _retention_policy='all')
tests.test_renderers
✔️ test_render_description
✔️ test_func_render_simple
✔️ test_func_render_shortnames
✔️ test_func_render_flags
✔️ test_func_render_description
✔️ test_func_render_params
✔️ test_func_render_returns
✔️ test_func_render_type_params
✔️ test_render_xref
✔️ test_func_render_param_type
✔️ test_func_render_param_options
✔️ test_func_render_param_exceptions
✔️ test_func_render_callouts
✔️ test_all
✔️ test_examples
✔️ test_type_alias
tests.test_suffix_tree
✔️ test_things
✔️ test_full_path
✔️ test_terminal_insertion
✔️ test_ambiguous_even_if_full_path
✔️ test_ambiguous_paths_reported
✔️ test_value_ambiguity
tests.test_testing
✔️ test_dict_where
tests.test_typedoc_analysis.test_typedoc_analysis.TestPathSegments
✔️ test_class
✔️ test_instance_property
✔️ test_static_property
✔️ test_interface_property
✔️ test_weird_name
✔️ test_getter
✔️ test_setter
✔️ test_method
✔️ test_static_method
✔️ test_constructor
✔️ test_function
✖️ test_relative_paths
✔️ test_namespaced_var
tests.test_typedoc_analysis.test_typedoc_analysis.TestConvertNode
✔️ test_class1
✔️ test_interface
✔️ test_interface_function_member
✔️ test_variable
✔️ test_function
✔️ test_constructor
✔️ test_properties
✔️ test_getter
✔️ test_setter
✔️ test_type_alias
tests.test_typedoc_analysis.test_typedoc_analysis.TestTypeName
✔️ test_basic
✔️ test_named_interface
✔️ test_interface_readonly_member
✔️ test_array
✔️ test_literal_types
✔️ test_unions
✔️ test_intersection
✔️ test_generic_function
✔️ test_generic_member
✔️ test_constrained_by_interface
✔️ test_constrained_by_key
✔️ test_class_constrained
✔️ test_constrained_by_constructor
✔️ test_utility_types
✔️ test_internal_symbol_reference
✔️ test_constrained_by_property
✔️ test_optional_property
✔️ test_code_in_description
✔️ test_destructured
✔️ test_funcarg
✔️ test_namedtuplearg
✔️ test_query
✔️ test_type_operator
✔️ test_private_type_alias1
✔️ test_private_type_alias2
✔️ test_hidden_type_top_level
✔️ test_hidden_type_member
✔️ test_rest_type
✔️ test_indexed_access_type
✔️ test_conditional_type
✔️ test_inferred_type
✔️ test_mapped_type
✔️ test_template_literal
Annotations
Check failure on line 0 in test-results.xml
github-actions / Test report - Python 3.12 + typedoc 0.25
pytest ► tests.test_paths ► test_global_install
Failed test found in:
test-results.xml
Error:
tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f2165a1ee70>, _basetemp=PosixPath('/tmp/pytest-of-runner/pytest-0'), _retention_count=3, _retention_policy='all')
Raw output
tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7f2165a1ee70>, _basetemp=PosixPath('/tmp/pytest-of-runner/pytest-0'), _retention_count=3, _retention_policy='all')
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f21646000e0>
def test_global_install(tmp_path_factory, monkeypatch):
tmpdir = tmp_path_factory.mktemp("global_root")
tmpdir2 = tmp_path_factory.mktemp("blah")
monkeypatch.setenv("npm_config_prefix", str(tmpdir))
monkeypatch.setenv("PATH", str(tmpdir / "bin"), prepend=":")
subprocess.run(["npm", "i", "-g", "typedoc", "typescript"])
typedoc = search_node_modules("typedoc", "typedoc/bin/typedoc", str(tmpdir2))
monkeypatch.setenv("TYPEDOC_NODE_MODULES", str(Path(typedoc).parents[3]))
dir = Path(__file__).parents[1].resolve() / "sphinx_js/js"
res = subprocess.run(
[
"npx",
"tsx",
"--import",
dir / "registerImportHook.mjs",
dir / "call_typedoc.ts",
"--version",
],
capture_output=True,
encoding="utf8",
)
print(res.stdout)
print(res.stderr)
> res.check_returncode()
tests/test_paths.py:116:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = CompletedProcess(args=['npx', 'tsx', '--import', PosixPath('/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/...est-of-runner/pytest-0/global_root0/lib/convertTopLevel.ts',\n code: 'ERR_MODULE_NOT_FOUND'\n}\n\nNode.js v18.20.4\n")
def check_returncode(self):
"""Raise CalledProcessError if the exit code is non-zero."""
if self.returncode:
> raise CalledProcessError(self.returncode, self.args, self.stdout,
self.stderr)
E subprocess.CalledProcessError: Command '['npx', 'tsx', '--import', PosixPath('/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/registerImportHook.mjs'), PosixPath('/home/runner/work/sphinx-js-fork/sphinx-js-fork/sphinx_js/js/call_typedoc.ts'), '--version']' returned non-zero exit status 1.
/opt/hostedtoolcache/Python/3.12.5/x64/lib/python3.12/subprocess.py:502: CalledProcessError
Loading