From 626aa1166f5308ff27ad2e102182e8aa6965e32b Mon Sep 17 00:00:00 2001 From: Wiktor Bajor Date: Sat, 6 Jul 2024 13:20:53 +0200 Subject: [PATCH] Remove tests folder and test action as there are no relevant tests --- .github/actions/test/action.yml | 7 ------ .github/actions/test/run.sh | 6 ----- .github/workflows/ros.yaml | 10 -------- ros2_grasp_service/test/test_copyright.py | 25 ------------------- ros2_grasp_service/test/test_flake8.py | 23 ----------------- ros2_grasp_service/test/test_pep257.py | 23 ----------------- .../test/test_copyright.py | 25 ------------------- .../test/test_flake8.py | 23 ----------------- .../test/test_pep257.py | 23 ----------------- .../test/test_copyright.py | 25 ------------------- .../test/test_flake8.py | 23 ----------------- .../test/test_pep257.py | 23 ----------------- .../test/test_copyright.py | 25 ------------------- .../test/test_flake8.py | 23 ----------------- .../test/test_pep257.py | 23 ----------------- 15 files changed, 307 deletions(-) delete mode 100644 .github/actions/test/action.yml delete mode 100755 .github/actions/test/run.sh delete mode 100644 ros2_grasp_service/test/test_copyright.py delete mode 100644 ros2_grasp_service/test/test_flake8.py delete mode 100644 ros2_grasp_service/test/test_pep257.py delete mode 100644 ros2_grasp_service_demo/open_manipulator/open_manipulator_bringup/test/test_copyright.py delete mode 100644 ros2_grasp_service_demo/open_manipulator/open_manipulator_bringup/test/test_flake8.py delete mode 100644 ros2_grasp_service_demo/open_manipulator/open_manipulator_bringup/test/test_pep257.py delete mode 100644 ros2_grasp_service_demo/open_manipulator/open_manipulator_control/test/test_copyright.py delete mode 100644 ros2_grasp_service_demo/open_manipulator/open_manipulator_control/test/test_flake8.py delete mode 100644 ros2_grasp_service_demo/open_manipulator/open_manipulator_control/test/test_pep257.py delete mode 100644 ros2_grasp_service_demo/open_manipulator/open_manipulator_description/test/test_copyright.py delete mode 100644 ros2_grasp_service_demo/open_manipulator/open_manipulator_description/test/test_flake8.py delete mode 100644 ros2_grasp_service_demo/open_manipulator/open_manipulator_description/test/test_pep257.py diff --git a/.github/actions/test/action.yml b/.github/actions/test/action.yml deleted file mode 100644 index acf5bd4..0000000 --- a/.github/actions/test/action.yml +++ /dev/null @@ -1,7 +0,0 @@ ---- -name: Test -description: Test using devcontainer -runs: - using: docker - image: ../../../.devcontainer/Dockerfile - entrypoint: .github/actions/test/run.sh diff --git a/.github/actions/test/run.sh b/.github/actions/test/run.sh deleted file mode 100755 index 7a62e5b..0000000 --- a/.github/actions/test/run.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash -set -e - -./setup.sh -./build.sh -./test.sh diff --git a/.github/workflows/ros.yaml b/.github/workflows/ros.yaml index df8471e..0cf627a 100644 --- a/.github/workflows/ros.yaml +++ b/.github/workflows/ros.yaml @@ -13,15 +13,6 @@ on: workflow_dispatch: jobs: - test: - name: test - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v3 - - name: Test - uses: ./.github/actions/test/ - lint: name: ament_${{ matrix.linter }} runs-on: ubuntu-latest @@ -41,7 +32,6 @@ jobs: name: Tests passed needs: - lint - - test runs-on: ubuntu-latest steps: - name: Check diff --git a/ros2_grasp_service/test/test_copyright.py b/ros2_grasp_service/test/test_copyright.py deleted file mode 100644 index 95f0381..0000000 --- a/ros2_grasp_service/test/test_copyright.py +++ /dev/null @@ -1,25 +0,0 @@ -# Copyright 2015 Open Source Robotics Foundation, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -from ament_copyright.main import main -import pytest - - -# Remove the `skip` decorator once the source file(s) have a copyright header -@pytest.mark.skip(reason="No copyright header has been placed in the generated source file.") -@pytest.mark.copyright -@pytest.mark.linter -def test_copyright(): - rc = main(argv=[".", "test"]) - assert rc == 0, "Found errors" diff --git a/ros2_grasp_service/test/test_flake8.py b/ros2_grasp_service/test/test_flake8.py deleted file mode 100644 index 49c1644..0000000 --- a/ros2_grasp_service/test/test_flake8.py +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright 2017 Open Source Robotics Foundation, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -from ament_flake8.main import main_with_errors -import pytest - - -@pytest.mark.flake8 -@pytest.mark.linter -def test_flake8(): - rc, errors = main_with_errors(argv=[]) - assert rc == 0, "Found %d code style errors / warnings:\n" % len(errors) + "\n".join(errors) diff --git a/ros2_grasp_service/test/test_pep257.py b/ros2_grasp_service/test/test_pep257.py deleted file mode 100644 index a2c3deb..0000000 --- a/ros2_grasp_service/test/test_pep257.py +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright 2015 Open Source Robotics Foundation, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -from ament_pep257.main import main -import pytest - - -@pytest.mark.linter -@pytest.mark.pep257 -def test_pep257(): - rc = main(argv=[".", "test"]) - assert rc == 0, "Found code style errors / warnings" diff --git a/ros2_grasp_service_demo/open_manipulator/open_manipulator_bringup/test/test_copyright.py b/ros2_grasp_service_demo/open_manipulator/open_manipulator_bringup/test/test_copyright.py deleted file mode 100644 index 95f0381..0000000 --- a/ros2_grasp_service_demo/open_manipulator/open_manipulator_bringup/test/test_copyright.py +++ /dev/null @@ -1,25 +0,0 @@ -# Copyright 2015 Open Source Robotics Foundation, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -from ament_copyright.main import main -import pytest - - -# Remove the `skip` decorator once the source file(s) have a copyright header -@pytest.mark.skip(reason="No copyright header has been placed in the generated source file.") -@pytest.mark.copyright -@pytest.mark.linter -def test_copyright(): - rc = main(argv=[".", "test"]) - assert rc == 0, "Found errors" diff --git a/ros2_grasp_service_demo/open_manipulator/open_manipulator_bringup/test/test_flake8.py b/ros2_grasp_service_demo/open_manipulator/open_manipulator_bringup/test/test_flake8.py deleted file mode 100644 index 49c1644..0000000 --- a/ros2_grasp_service_demo/open_manipulator/open_manipulator_bringup/test/test_flake8.py +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright 2017 Open Source Robotics Foundation, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -from ament_flake8.main import main_with_errors -import pytest - - -@pytest.mark.flake8 -@pytest.mark.linter -def test_flake8(): - rc, errors = main_with_errors(argv=[]) - assert rc == 0, "Found %d code style errors / warnings:\n" % len(errors) + "\n".join(errors) diff --git a/ros2_grasp_service_demo/open_manipulator/open_manipulator_bringup/test/test_pep257.py b/ros2_grasp_service_demo/open_manipulator/open_manipulator_bringup/test/test_pep257.py deleted file mode 100644 index a2c3deb..0000000 --- a/ros2_grasp_service_demo/open_manipulator/open_manipulator_bringup/test/test_pep257.py +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright 2015 Open Source Robotics Foundation, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -from ament_pep257.main import main -import pytest - - -@pytest.mark.linter -@pytest.mark.pep257 -def test_pep257(): - rc = main(argv=[".", "test"]) - assert rc == 0, "Found code style errors / warnings" diff --git a/ros2_grasp_service_demo/open_manipulator/open_manipulator_control/test/test_copyright.py b/ros2_grasp_service_demo/open_manipulator/open_manipulator_control/test/test_copyright.py deleted file mode 100644 index 95f0381..0000000 --- a/ros2_grasp_service_demo/open_manipulator/open_manipulator_control/test/test_copyright.py +++ /dev/null @@ -1,25 +0,0 @@ -# Copyright 2015 Open Source Robotics Foundation, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -from ament_copyright.main import main -import pytest - - -# Remove the `skip` decorator once the source file(s) have a copyright header -@pytest.mark.skip(reason="No copyright header has been placed in the generated source file.") -@pytest.mark.copyright -@pytest.mark.linter -def test_copyright(): - rc = main(argv=[".", "test"]) - assert rc == 0, "Found errors" diff --git a/ros2_grasp_service_demo/open_manipulator/open_manipulator_control/test/test_flake8.py b/ros2_grasp_service_demo/open_manipulator/open_manipulator_control/test/test_flake8.py deleted file mode 100644 index 49c1644..0000000 --- a/ros2_grasp_service_demo/open_manipulator/open_manipulator_control/test/test_flake8.py +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright 2017 Open Source Robotics Foundation, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -from ament_flake8.main import main_with_errors -import pytest - - -@pytest.mark.flake8 -@pytest.mark.linter -def test_flake8(): - rc, errors = main_with_errors(argv=[]) - assert rc == 0, "Found %d code style errors / warnings:\n" % len(errors) + "\n".join(errors) diff --git a/ros2_grasp_service_demo/open_manipulator/open_manipulator_control/test/test_pep257.py b/ros2_grasp_service_demo/open_manipulator/open_manipulator_control/test/test_pep257.py deleted file mode 100644 index a2c3deb..0000000 --- a/ros2_grasp_service_demo/open_manipulator/open_manipulator_control/test/test_pep257.py +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright 2015 Open Source Robotics Foundation, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -from ament_pep257.main import main -import pytest - - -@pytest.mark.linter -@pytest.mark.pep257 -def test_pep257(): - rc = main(argv=[".", "test"]) - assert rc == 0, "Found code style errors / warnings" diff --git a/ros2_grasp_service_demo/open_manipulator/open_manipulator_description/test/test_copyright.py b/ros2_grasp_service_demo/open_manipulator/open_manipulator_description/test/test_copyright.py deleted file mode 100644 index 95f0381..0000000 --- a/ros2_grasp_service_demo/open_manipulator/open_manipulator_description/test/test_copyright.py +++ /dev/null @@ -1,25 +0,0 @@ -# Copyright 2015 Open Source Robotics Foundation, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -from ament_copyright.main import main -import pytest - - -# Remove the `skip` decorator once the source file(s) have a copyright header -@pytest.mark.skip(reason="No copyright header has been placed in the generated source file.") -@pytest.mark.copyright -@pytest.mark.linter -def test_copyright(): - rc = main(argv=[".", "test"]) - assert rc == 0, "Found errors" diff --git a/ros2_grasp_service_demo/open_manipulator/open_manipulator_description/test/test_flake8.py b/ros2_grasp_service_demo/open_manipulator/open_manipulator_description/test/test_flake8.py deleted file mode 100644 index 49c1644..0000000 --- a/ros2_grasp_service_demo/open_manipulator/open_manipulator_description/test/test_flake8.py +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright 2017 Open Source Robotics Foundation, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -from ament_flake8.main import main_with_errors -import pytest - - -@pytest.mark.flake8 -@pytest.mark.linter -def test_flake8(): - rc, errors = main_with_errors(argv=[]) - assert rc == 0, "Found %d code style errors / warnings:\n" % len(errors) + "\n".join(errors) diff --git a/ros2_grasp_service_demo/open_manipulator/open_manipulator_description/test/test_pep257.py b/ros2_grasp_service_demo/open_manipulator/open_manipulator_description/test/test_pep257.py deleted file mode 100644 index a2c3deb..0000000 --- a/ros2_grasp_service_demo/open_manipulator/open_manipulator_description/test/test_pep257.py +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright 2015 Open Source Robotics Foundation, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -from ament_pep257.main import main -import pytest - - -@pytest.mark.linter -@pytest.mark.pep257 -def test_pep257(): - rc = main(argv=[".", "test"]) - assert rc == 0, "Found code style errors / warnings"