Skip to content

Commit

Permalink
Merge branch 'mirte-master' of https://github.com/arendjan/mirte-ros-…
Browse files Browse the repository at this point in the history
…packages into develop
  • Loading branch information
ArendJan committed Apr 8, 2024
2 parents 6cc185b + f279105 commit 34c19e0
Show file tree
Hide file tree
Showing 30 changed files with 2,265 additions and 152 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/catkin-lint.yml
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
16 changes: 8 additions & 8 deletions .github/workflows/cpp-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: DoozyX/clang-format-lint-action@v0.14
with:
source: '.'
# exclude: './third_party ./external'
extensions: 'h,cpp'
clangFormatVersion: 14
style: llvm
- uses: actions/checkout@v3
- uses: DoozyX/clang-format-lint-action@v0.14
with:
source: "."
# exclude: './third_party ./external'
extensions: "h,cpp"
clangFormatVersion: 14
style: llvm
19 changes: 19 additions & 0 deletions .github/workflows/pylint.yml
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')
14 changes: 14 additions & 0 deletions .github/workflows/yaml-check.yml
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 .
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
__pycache__
.vscode/
rb/
old/
build/
ridgeback_control/
Loading

0 comments on commit 34c19e0

Please sign in to comment.