Skip to content

Commit e98e7d0

Browse files
author
Prabhakar Kumar
committed
Workflows updated to use codecov/codecov-action@v4.
1 parent 3acc5bc commit e98e7d0

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

.github/actions/generate-code-coverage/action.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1-
# Copyright 2020-2023 The MathWorks, Inc.
1+
# Copyright 2020-2024 The MathWorks, Inc.
22

33
# Composite Action to generate Code Coverage XML and Upload it
44
name: Generate Code Coverage XML
5+
6+
inputs:
7+
codecov-token:
8+
description: 'codecov.io token'
9+
required: true
10+
511
runs:
612
using: "composite"
713
steps:
@@ -27,13 +33,14 @@ runs:
2733
shell: bash
2834

2935
- name: Upload python coverage report to Codecov
30-
uses: codecov/codecov-action@v3
36+
uses: codecov/codecov-action@v4
3137
with:
3238
directory: ./
3339
name: Python-codecov
3440
files: ./coverage.xml
3541
fail_ci_if_error: true
3642
verbose: true
43+
token: ${{ inputs.codecov-token }}
3744

3845
- name: Install Node Dependencies
3946
run: npm --prefix gui install gui
@@ -44,8 +51,9 @@ runs:
4451
shell: bash
4552

4653
- name: Upload Javscript coverage report to Codecov
47-
uses: codecov/codecov-action@v3
54+
uses: codecov/codecov-action@v4
4855
with:
4956
directory: ./gui/coverage/
5057
fail_ci_if_error: true
5158
verbose: true
59+
token: ${{ inputs.codecov-token }}

.github/workflows/release-to-pypi.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2020-2024 The MathWorks, Inc
1+
# Copyright 2020-2024 The MathWorks, Inc.
22

33
# Workflow to test MATLAB-Proxy while releasing to PyPi
44
name: Release to PyPI
@@ -23,6 +23,8 @@ jobs:
2323

2424
- name: Generate Code Coverage XML
2525
uses: ./.github/actions/generate-code-coverage
26+
with:
27+
codecov-token: ${{ secrets.CODECOV_TOKEN }}
2628

2729

2830
build_and_publish_pypi:

0 commit comments

Comments
 (0)