From f707ad49565b1e2db527bcdc6cf24538f897989d Mon Sep 17 00:00:00 2001 From: IceCodeNew <32576256+IceCodeNew@users.noreply.github.com> Date: Tue, 14 Jul 2026 16:16:20 +0800 Subject: [PATCH 1/2] ci: enhance unittest workflow with test analytics upload Added JUnit XML report generation and test results upload to Codecov. --- .github/workflows/unittest.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index 531bfce9..bac63542 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -67,8 +67,14 @@ jobs: - name: Generate Coverage Reports run: | uv sync --frozen - uv run pytest --cov --cov-branch --cov-report=xml + uv run pytest --cov --cov-branch --cov-report=xml --junitxml=junit.xml - name: Upload results to Codecov uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0 with: token: ${{ secrets.CODECOV_TOKEN }} + - name: Upload test results to Codecov + if: ${{ !cancelled() }} + uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0 + with: + token: ${{ secrets.CODECOV_TOKEN }} + report_type: "test_results" From e3e5e7413f63d9b8cd03724f361a5ab038a2f1b7 Mon Sep 17 00:00:00 2001 From: IceCodeNew <32576256+IceCodeNew@users.noreply.github.com> Date: Tue, 14 Jul 2026 16:24:03 +0800 Subject: [PATCH 2/2] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .github/workflows/unittest.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index bac63542..cfc0274b 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -77,4 +77,5 @@ jobs: uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0 with: token: ${{ secrets.CODECOV_TOKEN }} - report_type: "test_results" + report_type: test_results + files: junit.xml