Skip to content

Commit

Permalink
Merge branch 'main' into v2/develop
Browse files Browse the repository at this point in the history
Signed-off-by: Hayato Mizushima <[email protected]>
  • Loading branch information
hayato-m126 committed Oct 17, 2024
2 parents 6e2d6e2 + ebfd6b9 commit 64b4a21
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/colcon-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,42 @@ jobs:

- name: build and test
uses: ros-tooling/[email protected]
id: actions_ros_ci_step
with:
package-name: ${{ steps.list_packages.outputs.package_list }}
target-ros2-distro: ${{ matrix.ros_distribution }}
vcs-repo-file-url: dependency.repos
import-token: ${{ secrets.GITHUB_TOKEN }}
colcon-defaults: |
{
"build": {
"mixin": ["coverage-pytest"]
},
"test": {
"mixin": ["coverage-pytest"]
}
}
colcon-mixin-repository: https://raw.githubusercontent.com/colcon/colcon-mixin-repository/b8436aa16c0bdbc01081b12caa253cbf16e0fb82/index.yaml

- name: Upload Unit Test Output
uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: colcon-logs
path: ${{ steps.action_ros_ci_step.outputs.ros-workspace-directory-name }}/log

- name: fix paths for coverage file
run: sed -E -i 's/^([[:space:]]*<source>[[:space:]]*)(.*\/)(driving_log_replayer_v2\/driving_log_replayer_v2)/\1.\/driving_log_replayer_v2/' /__w/driving_log_replayer_v2/driving_log_replayer_v2/ros_ws/build/driving_log_replayer_v2/pytest_cov/driving_log_replayer_v2/coverage.xml

- name: Upload Coverage File
uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: colcon-logs
path: /__w/driving_log_replayer_v2/driving_log_replayer_v2/ros_ws/build/driving_log_replayer_v2/pytest_cov/driving_log_replayer_v2/

- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
23 changes: 23 additions & 0 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"configurations": [
{
"browse": {
"databaseFilename": "",
"limitSymbolsToIncludedHeaders": true
},
"includePath": [
"/opt/ros/humble/include/**",
"driving_log_replayer_v2/include/**",
"${workspaceFolder}/../../../install/**",
"/usr/include/**",
"/usr/local/include/**"
],
"name": "ROS",
"intelliSenseMode": "gcc-x64",
"compilerPath": "/usr/bin/gcc",
"cStandard": "c17",
"cppStandard": "c++17"
}
],
"version": 4
}
15 changes: 15 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
sonar.organization=tier4
sonar.projectKey=tier4_driving_log_replayer_v2
sonar.projectVersion=1.0
sonar.projectName=driving_log_replayer_v2
sonar.sources=./driving_log_replayer_v2
sonar.include=**/*.py
sonar.exclusions=**/test_*.py, **/*.yaml, **/*.yml, **/*.json, **/*.html, **/*.js, **/*.css, **/*.sh, **/*.md, **/tests/**/*.*
sonar.coverage.exclusions=**/test_*.py, **/*.yaml, **/*.yml, **/*.json, **/*.html, **/*.js, **/*.css, **/*.sh, **/*.md, **/tests/**/*.*
sonar.sourceEncoding=UTF-8

sonar.language=py
sonar.python.version=3.10
sonar.python.coverage.reportPaths=./ros_ws/build/driving_log_replayer_v2/pytest_cov/driving_log_replayer_v2/coverage.xml

# sonar.log.level=DEBUG

0 comments on commit 64b4a21

Please sign in to comment.