now try to fix coverage #1155
Workflow file for this run
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
name: SROS2 CI | |
on: | |
pull_request: | |
push: | |
schedule: | |
# Run daily | |
- cron: '0 20 * * *' | |
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 | |
apt-get -qq upgrade -y | |
apt-get -qq install -y curl libasio-dev libssl-dev libtinyxml2-dev python3-colcon-coveragepy-result | |
- uses: mikaelarguedas/action-ros-ci@skip-connext-6-0-1-test-sros2 | |
with: | |
package-name: | | |
sros2 | |
sros2_cmake | |
extra-cmake-args: '-DSECURITY=ON --no-warn-unused-cli' | |
target-ros2-distro: rolling | |
colcon-defaults: | | |
{ | |
"build": { | |
"mixin": ["coverage-pytest"] | |
}, | |
"test": { | |
"mixin": ["coverage-pytest"] | |
} | |
} | |
# If possible, pin the repository in the workflow to a specific commit to avoid | |
# changes in colcon-mixin-repository from breaking your tests. | |
colcon-mixin-repository: https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v1 | |
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@v1 | |
if: failure() | |
with: | |
name: colcon-logs | |
path: ros_ws/log | |
test_nightly: | |
runs-on: ubuntu-latest | |
# 'osrf/ros2:nightly-rmw-nonfree' includes RTI Connext but | |
# does *not* include the security plugins or a license allowing the use of Security | |
container: osrf/ros2:nightly-rmw-nonfree | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Installing dependencies | |
run: | | |
apt-get -qq update | |
apt-get -qq upgrade -y | |
. /opt/ros/$ROS_DISTRO/setup.sh | |
rosdep update | |
DEBIAN_FRONTEND=noninteractive rosdep install -y --from-paths . --ignore-src --rosdistro $ROS_DISTRO | |
- name: Build workspace | |
run: . /opt/ros/$ROS_DISTRO/setup.sh && colcon build | |
- name: Test workspace | |
run: . /opt/ros/$ROS_DISTRO/setup.sh && colcon test --executor sequential --event-handlers console_direct+ | |
- name: Check test results | |
run: colcon test-result | |
- name: Upload Logs | |
uses: actions/upload-artifact@v1 | |
if: failure() | |
with: | |
name: colcon-logs | |
path: ros_ws/log |