Skip to content

Commit

Permalink
Update manual_code_coverage.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
fabawi committed Jan 18, 2024
1 parent a129911 commit 501048b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/manual_code_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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|<sources>|<sources><source>/wrapyfi</source>|g' ${GITHUB_WORKSPACE}/shared_directory/coverage.xml
# Remove the old source tag if it exists
sed -i '/<source>.*<\/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)
Expand Down

0 comments on commit 501048b

Please sign in to comment.