From bbd6809429fe2e4ee076610895827b2229db2203 Mon Sep 17 00:00:00 2001 From: Fares Abawi Date: Tue, 23 Jan 2024 19:30:22 +0100 Subject: [PATCH] Update manual_code_coverage.yml --- .github/workflows/manual_code_coverage.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/manual_code_coverage.yml b/.github/workflows/manual_code_coverage.yml index db41f06..2681e42 100644 --- a/.github/workflows/manual_code_coverage.yml +++ b/.github/workflows/manual_code_coverage.yml @@ -8,6 +8,12 @@ jobs: runs-on: ubuntu-latest steps: + # Step 0: Checkout Wrapyfi for upload to codecov + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + # Step 1: Create a local directory with full read-write permissions - name: Create and verify local directory run: | @@ -62,7 +68,8 @@ jobs: - name: Modify paths in coverage.xml run: | cp ${GITHUB_WORKSPACE}/shared_directory/coverage.xml ${GITHUB_WORKSPACE}/coverage.xml - sed -i 's||/wrapyfi|' ${GITHUB_WORKSPACE}/coverage.xml + rm ${GITHUB_WORKSPACE}/shared_directory/coverage.xml + sed -i 's||/home/runner/work/wrapyfi/wrapyfi|' ${GITHUB_WORKSPACE}/coverage.xml sed -i 's|.opt.conda.envs.zeromq_yarp_ros2.lib.python3.10.site-packages.wrapyfi|.|g' ${GITHUB_WORKSPACE}/coverage.xml sed -i 's|/opt/conda/envs/zeromq_yarp_ros2/lib/python3.10/site-packages/wrapyfi||g' ${GITHUB_WORKSPACE}/coverage.xml sed -i 's|filename="./|filename="|g' ${GITHUB_WORKSPACE}/coverage.xml