diff --git a/.github/workflows/reusable-build-coverage.yml b/.github/workflows/reusable-build-coverage.yml index 3799ab4..cb1e5af 100644 --- a/.github/workflows/reusable-build-coverage.yml +++ b/.github/workflows/reusable-build-coverage.yml @@ -101,13 +101,27 @@ jobs: } } colcon-mixin-repository: https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml + - name: Test coverage tools + if: ${{ inputs.debug }} + run: | + pwd + which coverage || true + python3 -m coverage --version || true + coverage --version || true + source ~/.venv/bin/activate || true + python3 -m coverage --version || true + coverage --version || true + which coverage || true + ls ~/.venv/bin || true - name: Search for .coverage files and convert them + continue-on-error: true # TODO(anyone): remove this once codecov-action does not throw # "coverage.py is not installed or can't be found." # note: reports from pytest-cov are already in the correct format run: | find ros_ws -name total_coverage.info find ros_ws -name .coverage + source ~/.venv/bin/activate for coverage_file in $(find ros_ws -name .coverage); do output_file="${coverage_file%/.coverage}/coverage.xml" if [ ! -f "$output_file" ]; then