-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Hayato Mizushima <[email protected]>
- Loading branch information
1 parent
662a493
commit eaa0936
Showing
1 changed file
with
13 additions
and
17 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 |
---|---|---|
|
@@ -44,32 +44,28 @@ 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"] | ||
} | ||
} | ||
- name: show dir for test coverage | ||
run: | | ||
pwd | ||
echo "Current working directory:" | ||
ls -la driving_log_repalyer/ros_ws | ||
- name: Execute pytest | ||
run: | | ||
set -o pipefail | ||
source driving_log_replayer/ros_ws/install/setup.bash | ||
cd driving_log_replyaer | ||
pytest -s --suppress-no-test-exit-code -v \ | ||
--junit-xml test-output/results/pytest.xml \ | ||
--cov=test --cov-report=term-missing:skip-covered --cov-report=xml:test-output/coverage-reports/coverage.xml test | tee pytest-coverage.txt | ||
- name: Upload Unit Test Output | ||
uses: actions/upload-artifact@v4 | ||
if: ${{ !cancelled() }} | ||
with: | ||
name: main_package | ||
path: test-output/**/*.xml # to be updated | ||
name: colcon-logs | ||
path: ${{ steps.action_ros_ci_step.outputs.ros-workspace-directory-name }}/log | ||
|
||
report-test-result: | ||
name: Get and upload Test Result | ||
|
@@ -83,7 +79,7 @@ jobs: | |
- name: Download Artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: artifacts | ||
path: colcon-logs | ||
- name: SonarCloud Scan | ||
uses: sonarsource/sonarcloud-github-action@v3 | ||
env: | ||
|