Skip to content

Commit 76a2ef9

Browse files
committed
ci: Upload test results to Codecov
Extend the test workflow with uploading junit.xml reports to Codecov. Signed-off-by: Pieter De Gendt <[email protected]>
1 parent 31be2d0 commit 76a2ef9

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

.github/workflows/test.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,14 @@ jobs:
4848
path: "./check out/.coverage"
4949
include-hidden-files: true
5050

51-
coverage-report:
52-
name: Report test coverage
51+
- name: Upload test reports
52+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
53+
with:
54+
name: tests-${{ matrix.os }}-${{ matrix.python-version }}
55+
path: "./check out/junit.xml"
56+
57+
test-report:
58+
name: Report test results
5359
runs-on: ubuntu-latest
5460
needs: ["build"]
5561
steps:
@@ -63,7 +69,7 @@ jobs:
6369
with:
6470
python-version: '3.13'
6571

66-
- name: Download all coverage artifacts
72+
- name: Download all artifacts
6773
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
6874

6975
- name: Install coverage
@@ -85,4 +91,9 @@ jobs:
8591
uses: codecov/codecov-action@ad3126e916f78f00edff4ed0317cf185271ccc2d # v5.4.2
8692
with:
8793
token: ${{ secrets.CODECOV_TOKEN }}
88-
slug: ${{ github.repository_owner }}/west
94+
95+
- name: Upload test results to Codecov
96+
if: github.repository_owner == 'zephyrproject-rtos' && ${{ !cancelled() }}
97+
uses: codecov/test-results-action@47f89e9acb64b76debcd5ea40642d25a4adced9f # v1.1.1
98+
with:
99+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)