From 11d9537b058b6fefebab78f4f28b20f6780201d2 Mon Sep 17 00:00:00 2001 From: Patrick Honkonen Date: Thu, 30 Oct 2025 09:26:00 -0400 Subject: [PATCH] Move coverage reports to root directory for Codecov upload This commit updates the `test.yml` GitHub workflow to correctly process and locate code coverage reports before uploading them to Codecov. The previous steps extracted coverage reports from `.tar` and `.zip` archives into subdirectories within the `coverage-reports` directory. This commit adds a step to move all extracted `.xml` files from these subdirectories into the root of the `coverage-reports` directory. Additionally, it cleans up the original `.tar` and `.zip` archives after extraction to save space. This ensures that the Codecov action can find all the necessary XML reports in the expected location. --- .github/workflows/test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 45365e4a59..aa2e0c1c7c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -301,6 +301,8 @@ jobs: run: | find coverage-reports -type f -name "*.tar" -exec tar -xf {} -C coverage-reports \; find coverage-reports -type f -name "*.zip" -exec unzip -o {} -d coverage-reports \; + find coverage-reports -name "*.xml" -type f -exec mv {} coverage-reports/ \; + find coverage-reports -type f \( -name "*.tar" -o -name "*.zip" \) -delete find coverage-reports -name "*.xml" -type f - name: Upload to codecov.io