Skip to content

Commit

Permalink
Add GitHub workflow for CI (#310)
Browse files Browse the repository at this point in the history
* init docker based CI

Signed-off-by: Harsh Deshpande <[email protected]>

* target rolling only

Signed-off-by: Harsh Deshpande <[email protected]>

* use setup-ros and action-ros-ci instead of custom scripts

Signed-off-by: Harsh Deshpande <[email protected]>

* quiet blind except warnings

#310 (comment)

Signed-off-by: Harsh Deshpande <[email protected]>

* remove ccache

build times are not a concern and it is not significantly improved when using ros-tooling actions

Signed-off-by: Harsh Deshpande <[email protected]>
  • Loading branch information
hsd-dev authored May 10, 2021
1 parent 2cd59a6 commit 5d77ce0
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: CI

on: [push, pull_request] # on all pushes and PRs

jobs:
ros1_bridge:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ros-tooling/[email protected]
with:
required-ros-distributions: "noetic rolling"
- name: Build and test ros1-bridge
uses: ros-tooling/[email protected]
with:
package-name: ros1_bridge
target-ros1-distro: noetic
target-ros2-distro: rolling

4 changes: 2 additions & 2 deletions ros1_bridge/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def get_ros2_messages():
if all(n not in data for n in ('ros1_service_name', 'ros2_service_name')):
try:
rules.append(MessageMappingRule(data, package_name))
except Exception as e:
except Exception as e: # noqa: B902
print('%s' % str(e), file=sys.stderr)
return pkgs, msgs, rules

Expand Down Expand Up @@ -341,7 +341,7 @@ def get_ros2_services():
if all(n not in data for n in ('ros1_message_name', 'ros2_message_name')):
try:
rules.append(ServiceMappingRule(data, package_name))
except Exception as e:
except Exception as e: # noqa: B902
print('%s' % str(e), file=sys.stderr)
return pkgs, srvs, rules

Expand Down

0 comments on commit 5d77ce0

Please sign in to comment.