From 8251d76ebc19099fd12b80af4e82b18b0cc05ce2 Mon Sep 17 00:00:00 2001 From: Jonathan Hui Date: Tue, 14 Jul 2026 19:09:19 -0700 Subject: [PATCH] [ci] fix coverage upload in otns workflow (#13348) - Replace deprecated 'upload_codecov' with 'combine_coverage' in 'otns.yml'. - Use 'codecov/codecov-action' to upload coverage in 'otns.yml', ensuring consistency with other workflows (e.g. simulation.yml). --- .github/workflows/otns.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/otns.yml b/.github/workflows/otns.yml index c346754bf..b4ed63f82 100644 --- a/.github/workflows/otns.yml +++ b/.github/workflows/otns.yml @@ -228,8 +228,13 @@ jobs: with: path: coverage/ pattern: cov-* - merge-multiple: true - - name: Upload Coverage - continue-on-error: ${{ !(github.repository == 'openthread/openthread' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository)) }} + - name: Combine Coverage run: | - script/test upload_codecov + script/test combine_coverage + - name: Upload Coverage + uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + with: + files: final.info + fail_ci_if_error: true