diff --git a/.github/workflows/manual_code_coverage.yml b/.github/workflows/manual_code_coverage.yml index 8c1c46b..253148a 100644 --- a/.github/workflows/manual_code_coverage.yml +++ b/.github/workflows/manual_code_coverage.yml @@ -61,9 +61,15 @@ jobs: # Step 7: Modify codecov paths - name: Modify paths in coverage.xml run: | - sed -i 's|.opt.conda.envs.zeromq_yarp_ros2.lib.python3.10.site-packages.wrapyfi|.|g' ${GITHUB_WORKSPACE}/shared_directory/coverage.xml - sed -i 's|/opt/conda/envs/zeromq_yarp_ros2/lib/python3.10/site-packages/wrapyfi||g' ${GITHUB_WORKSPACE}/shared_directory/coverage.xml - cat ${GITHUB_WORKSPACE}/shared_directory/coverage.xml # Optional: Print to verify + # Set the source directory to /wrapyfi + sed -i 's||/wrapyfi|g' ${GITHUB_WORKSPACE}/shared_directory/coverage.xml + # Remove the old source tag if it exists + sed -i '/.*<\/source>/d' ${GITHUB_WORKSPACE}/shared_directory/coverage.xml + # Modify file paths by removing the unnecessary path prefix and leading ./ + sed -i 's|filename="./opt/conda/envs/zeromq_yarp_ros2/lib/python3.10/site-packages/wrapyfi/|filename="|g' ${GITHUB_WORKSPACE}/shared_directory/coverage.xml + sed -i 's|filename=".|filename="|g' ${GITHUB_WORKSPACE}/shared_directory/coverage.xml + # Optional: Print to verify + cat ${GITHUB_WORKSPACE}/shared_directory/coverage.xml # Step 8: Upload the coverage report (remains unchanged)