Skip to content

Commit 6e4d14d

Browse files
pauldrucePrabhakar Kumar
authored andcommitted
Fixes GitHub actions for failing code coverage collection tests.
1 parent 17bbf01 commit 6e4d14d

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

.github/actions/build_and_publish_pypi/action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2020-2022 The MathWorks, Inc
1+
# Copyright 2020-2023 The MathWorks, Inc.
22

33
# Composite Action to Build and Publish in PyPi
44
name: Build and Publish in PyPi
@@ -16,12 +16,12 @@ runs:
1616

1717
- name: Install Python build dependencies
1818
run: |
19-
python -m pip install --upgrade pip
20-
python -m pip install wheel
19+
python3 -m pip install --upgrade pip
20+
python3 -m pip install wheel
2121
shell: bash
2222

2323
- name: Build Source and Binary wheel distributions
24-
run: python setup.py bdist_wheel sdist
24+
run: python3 setup.py bdist_wheel sdist
2525
shell: bash
2626

2727
- name: Publish to PyPI.

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2020-2022 The MathWorks, Inc
1+
# Copyright 2020-2023 The MathWorks, Inc.
22

33
# Composite Action to generate Code Coverage XML and Upload it
44
name: Generate Code Coverage XML
@@ -17,17 +17,17 @@ runs:
1717

1818
- name: Install Python build dependencies
1919
run: |
20-
python -m pip install --upgrade pip
21-
python -m pip install wheel
22-
pip install .[dev]
20+
python3 -m pip install --upgrade pip
21+
python3 -m pip install wheel
22+
python3 -m pip install .[dev]
2323
shell: bash
2424

2525
- name: Generate Code Coverage report for Python code
26-
run: pytest --cov=./ --cov-report=xml
26+
run: python3 -m pytest --cov=./ --cov-report=xml tests/unit
2727
shell: bash
2828

2929
- name: Upload python coverage report to Codecov
30-
uses: codecov/codecov-action@v2
30+
uses: codecov/codecov-action@v3
3131
with:
3232
directory: ./
3333
name: Python-codecov
@@ -44,7 +44,7 @@ runs:
4444
shell: bash
4545

4646
- name: Upload Javscript coverage report to Codecov
47-
uses: codecov/codecov-action@v2
47+
uses: codecov/codecov-action@v3
4848
with:
4949
directory: ./gui/coverage/
5050
fail_ci_if_error: true

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@ dist/
88
htmlcov/
99
.coverage
1010
*.key
11-
*.pem
11+
*.pem
12+
.python-version
13+
coverage.xml

0 commit comments

Comments
 (0)