From d42a46a7e1ffacf40f8335c1a7ac0b89e939b5e1 Mon Sep 17 00:00:00 2001 From: texhnolyze Date: Mon, 16 Dec 2024 19:31:50 +0100 Subject: [PATCH] test(colcon): configure our pkgs to use `pytest` to ensure that the CI `colcon test` run works, because with a change to python 3.12 the `unittest` standard library used by default with colcon now exits with an error code of 5 for an empty test suite. See: https://github.com/colcon/colcon-core/issues/678 See: https://github.com/python/cpython/pull/102051 --- dynamic_stack_decider/package.xml | 1 + dynamic_stack_decider_visualization/package.xml | 1 + dynamic_stack_decider_visualization/setup.py | 1 + 3 files changed, 3 insertions(+) diff --git a/dynamic_stack_decider/package.xml b/dynamic_stack_decider/package.xml index 198fed1..12336bc 100644 --- a/dynamic_stack_decider/package.xml +++ b/dynamic_stack_decider/package.xml @@ -24,6 +24,7 @@ rclpy std_msgs python3-yaml + python3-pytest python3-coverage diff --git a/dynamic_stack_decider_visualization/package.xml b/dynamic_stack_decider_visualization/package.xml index b3dfc4f..62dff5c 100644 --- a/dynamic_stack_decider_visualization/package.xml +++ b/dynamic_stack_decider_visualization/package.xml @@ -25,6 +25,7 @@ python3-pydot + python3-pytest diff --git a/dynamic_stack_decider_visualization/setup.py b/dynamic_stack_decider_visualization/setup.py index 12ce939..6ec67bf 100644 --- a/dynamic_stack_decider_visualization/setup.py +++ b/dynamic_stack_decider_visualization/setup.py @@ -12,6 +12,7 @@ ("share/" + package_name, ["plugin.xml"]), ], install_requires=["setuptools"], + tests_require=["pytest"], zip_safe=True, entry_points={ "console_scripts": [