Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
Signed-off-by: Hayato Mizushima <[email protected]>
  • Loading branch information
hayato-m126 committed Sep 19, 2024
1 parent 662a493 commit eaa0936
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions .github/workflows/colcon-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit eaa0936

Please sign in to comment.