-
Notifications
You must be signed in to change notification settings - Fork 54
Add GitHub actions for linting and source-build CI #178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
4ff765c
Use github actions to perform CI
mikaelarguedas 0db80e5
comment integration tests until fastrtps is fixed
mikaelarguedas 9cbfe85
comment out end-to-end testing for now
mikaelarguedas 0fe2eec
add badges to readme
mikaelarguedas 25126f6
use ROS_DISTRO env var
mikaelarguedas bbda7ff
test sequentially and print to console
mikaelarguedas 3963861
run after nightly docker images rebuild
mikaelarguedas 535a700
add comment about using upstream action-ros-ci
mikaelarguedas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,2 @@ | ||
| fixes: | ||
| - "ros_ws/src/sros2/::" | ||
This file contains hidden or 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,61 @@ | ||
| name: SROS2 CI | ||
| on: | ||
| pull_request: | ||
| push: | ||
| schedule: | ||
| # Run daily | ||
| - cron: '0 20 * * *' | ||
|
|
||
| jobs: | ||
| test_latest: | ||
| runs-on: ubuntu-latest | ||
| container: osrf/ros2:devel | ||
|
kyrofa marked this conversation as resolved.
|
||
| steps: | ||
| - run: | | ||
| apt-get -qq update | ||
| apt-get -qq upgrade -y | ||
| apt-get -qq install -y curl libasio-dev libtinyxml2-dev | ||
| # TODO(mikaelarguedas) switch back to ros-tooling/action-ros-ci once | ||
| # https://github.com/ros-tooling/action-ros-ci/pull/109 is released | ||
| - uses: mikaelarguedas/action-ros-ci@sros2-version | ||
|
mikaelarguedas marked this conversation as resolved.
|
||
| with: | ||
| package-name: | | ||
| sros2 | ||
| sros2_cmake | ||
| # skipping end-to-end tests for now https://github.com/eProsima/Fast-RTPS/issues/1087 | ||
| # test_security | ||
| # extra-cmake-args: '-DSECURITY=ON --no-warn-unused-cli' | ||
| - name: Upload coverage to Codecov | ||
| uses: codecov/codecov-action@v1.0.6 | ||
| if: github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref == 'refs/heads/master') | ||
| with: | ||
| file: ros_ws/build/sros2/coverage.xml | ||
| flags: unittests | ||
| name: sros2-coverage | ||
| fail_ci_if_error: true | ||
| yml: .codecov.yml | ||
|
kyrofa marked this conversation as resolved.
|
||
| - name: Upload Logs | ||
| uses: actions/upload-artifact@v1 | ||
| if: failure() | ||
| with: | ||
| name: colcon-logs | ||
| path: ros_ws/log | ||
| test_nightly: | ||
| runs-on: ubuntu-latest | ||
| container: osrf/ros2:nightly | ||
| steps: | ||
| - uses: actions/checkout@v1 | ||
| - run: | | ||
| apt-get -qq update | ||
| apt-get -qq upgrade -y | ||
| rosdep update | ||
|
kyrofa marked this conversation as resolved.
|
||
| rosdep install -y --from-paths . --ignore-src --rosdistro $ROS_DISTRO | ||
| - run: . /opt/ros/$ROS_DISTRO/setup.sh && colcon build | ||
| - run: . /opt/ros/$ROS_DISTRO/setup.sh && colcon test --executor sequential --event-handlers console_direct+ | ||
| - run: colcon test-result | ||
| - name: Upload Logs | ||
| uses: actions/upload-artifact@v1 | ||
| if: failure() | ||
| with: | ||
| name: colcon-logs | ||
| path: ros_ws/log | ||
This file contains hidden or 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 hidden or 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,4 @@ | ||
| [run] | ||
| omit = | ||
| # omit test directory | ||
| test/* | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I did this to get accurate coverage numbers. Code in test is usually pretty well covered and skewing the numbers |
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This rewrites the path of the files in the report so that we can browse them directly on the codecov.io interface and see which lines/conditionals are covered and which are not