forked from mirte-robot/mirte-ros-packages
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'mirte-master' of https://github.com/arendjan/mirte-ros-…
…packages into develop
- Loading branch information
Showing
30 changed files
with
2,265 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Compile and catkin_lint ros style check | ||
on: [push, pull_request] | ||
jobs: | ||
check_ros_style: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ros:noetic | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: apt update && apt install catkin-lint git libuvc-dev -y | ||
- run: | | ||
mkdir -p catkin_ws/src | ||
mv mirte_bringup catkin_ws/src/ | ||
mv mirte_control catkin_ws/src/ | ||
mv mirte_msgs catkin_ws/src/ | ||
mv mirte_telemetrix catkin_ws/src/ | ||
mv mirte_teleop catkin_ws/src/ | ||
cd catkin_ws/src | ||
git clone https://github.com/arendjan/ridgeback.git | ||
git clone https://github.com/Slamtec/rplidar_ros.git | ||
git clone https://github.com/orbbec/ros_astra_camera.git | ||
. /opt/ros/noetic/setup.sh | ||
catkin_init_workspace | ||
cd .. | ||
rosdep init || true | ||
rosdep update || true | ||
rosdep install -y --from-paths src/ --ignore-src --rosdistro noetic | ||
catkin_make | ||
. devel/setup.sh | ||
- run: | | ||
. catkin_ws/devel/setup.sh | ||
failure=false | ||
# Run all tests before failing to test all packages | ||
catkin_lint --strict --explain --ignore uninstalled_target --ignore uninstalled_script --pkg mirte_bringup || failure=true | ||
catkin_lint --strict --explain --ignore uninstalled_target --ignore uninstalled_script --pkg mirte_control || failure=true | ||
catkin_lint --strict --explain --ignore uninstalled_target --ignore uninstalled_script --pkg mirte_msgs || failure=true | ||
catkin_lint --strict --explain --ignore uninstalled_target --ignore uninstalled_script --pkg mirte_telemetrix || failure=true | ||
catkin_lint --strict --explain --ignore uninstalled_target --ignore uninstalled_script --pkg mirte_teleop || failure=true | ||
if $failure; then | ||
echo "Automated tests failed" >&2 | ||
exit 1 | ||
else | ||
echo "Automated tests succeeded" >&2 | ||
exit 0 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Pylint | ||
|
||
on: [push] | ||
|
||
jobs: | ||
linter: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pylint | ||
- name: Analysing the code with pylint | ||
run: | | ||
pylint --fail-under=4 $(git ls-files '*.py') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
name: test-yaml-format | ||
on: [push, pull_request] | ||
jobs: | ||
yaml_style_check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
- run: pip install yamllint | ||
- name: check yaml changes | ||
run: |- | ||
yamllint . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
__pycache__ | ||
.vscode/ | ||
rb/ | ||
old/ | ||
build/ | ||
ridgeback_control/ |
Oops, something went wrong.