-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ok lets match the sros2 pr as much as possible
Signed-off-by: Mikael Arguedas <[email protected]>
- Loading branch information
1 parent
8bac310
commit 24a8ea0
Showing
1 changed file
with
30 additions
and
2 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 |
---|---|---|
@@ -1,14 +1,15 @@ | ||
name: Test action-ros-ci | ||
name: SROS2 CI | ||
on: | ||
pull_request: | ||
push: | ||
|
||
jobs: | ||
test_latest: | ||
runs-on: ubuntu-latest | ||
# 'osrf/ros2:devel' does *not* include RTI Connext or its' security plugins | ||
# the former gets installed via rosdep in 'action-ros-ci' but the latter do *not* get installed | ||
container: osrf/ros2:devel | ||
steps: | ||
# - uses: ros-tooling/[email protected] | ||
- name: Install prerequisites for action-ros-ci and FastRTPS | ||
run: | | ||
apt-get -qq update | ||
|
@@ -21,5 +22,32 @@ jobs: | |
sros2_cmake | ||
test_security | ||
extra-cmake-args: '-DSECURITY=ON --no-warn-unused-cli' | ||
colcon-defaults: | | ||
{ | ||
"build": { | ||
"mixin": ["coverage-pytest"] | ||
}, | ||
"test": { | ||
"mixin": ["coverage-pytest"] | ||
} | ||
} | ||
colcon-mixin-repository: https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml | ||
target-ros2-distro: rolling | ||
vcs-repo-file-url: https://raw.githubusercontent.com/ros2/ros2/rolling/ros2.repos | ||
|
||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v4 | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
if: github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref == 'refs/heads/rolling') | ||
with: | ||
file: ros_ws/build/sros2/coverage.xml | ||
flags: unittests | ||
name: sros2-coverage | ||
fail_ci_if_error: true | ||
- name: Upload Logs | ||
uses: actions/upload-artifact@v4 | ||
if: failure() | ||
with: | ||
name: colcon-logs | ||
path: ros_ws/log |