Build + Coverage #779
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
| name: "Build + Coverage" | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| schedule: | |
| # Run once per day to detect broken dependencies. | |
| - cron: '33 5 * * *' | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - ros_distribution: "humble" | |
| os: "ubuntu-22.04" | |
| - ros_distribution: "rolling" | |
| os: "ubuntu-22.04" | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: ros-tooling/setup-ros@v0.3 | |
| with: | |
| use-ros2-testing: true | |
| required-ros-distributions: ${{ matrix.ros_distribution }} | |
| - name : Download and install dependencies | |
| run: | | |
| sudo apt-get install ros-${{ matrix.ros_distribution }}-rclc | |
| sudo apt-get install ros-${{ matrix.ros_distribution }}-osrf-testing-tools-cpp | |
| pip3 install pyOpenSSL --upgrade | |
| pip3 install pydocstyle==6.1.1 # downgrade to fix https://github.com/ament/ament_lint/pull/428 | |
| - uses : ros-tooling/action-ros-ci@v0.2 | |
| with: | |
| package-name: "micro_ros_diagnostic_msgs micro_ros_diagnostic_updater micro_ros_common_diagnostics" | |
| target-ros2-distro: ${{ matrix.ros_distribution }} | |
| colcon-defaults: | | |
| { | |
| "build": { | |
| "mixin": ["coverage-gcc", "coverage-pytest"] | |
| }, | |
| "test": { | |
| "mixin": ["coverage-pytest"] | |
| } | |
| } | |
| colcon-mixin-repository: https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml | |
| - uses: codecov/codecov-action@v1.5.0 | |
| with: | |
| file: ros_ws/lcov/total_coverage.info |