Skip to content

Commit

Permalink
Fix coverage build for jammy (#116)
Browse files Browse the repository at this point in the history
* Add more debug output

* Activate venv once again
  • Loading branch information
christophfroehlich authored Aug 14, 2024
1 parent d3367be commit 3268633
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/reusable-build-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3268633

Please sign in to comment.