Skip to content

Add coverage and fix lint #15

Add coverage and fix lint

Add coverage and fix lint #15

Workflow file for this run

name: unit-tests
on: push
jobs:
unit-tests:
runs-on: ubuntu-latest
container:
image: osrf/ros:${{ matrix.ros_distribution }}-desktop-noble
strategy:
matrix:
ros_distribution:
- jazzy
- rolling
steps:
- name: Checkout
uses: actions/checkout@v1
- name: build-and-test
uses: ./.github/actions/build-and-test
with:
ros-distribution: ${{ matrix.ros_distribution }}
zenoh-version: 1.0.1
integration-testing: OFF
- name: Upload failed test results
uses: actions/upload-artifact@v4
if: failure()
with:
name: test-results
path: ros_ws/build/*/test_results/*/*.catch2.xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
files: ros_ws/coveragepy/.coverage
flags: tests
fail_ci_if_error: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}