Skip to content

Commit 60283ff

Browse files
authored
Fixed #1086 Remove Codecov (#1084)
* Minor change * Minor change * Initiate migration away from codecov * Minor change * Added parallel-mode to coverage.py * Added upload artifacts * Minor change * Removed paralle-mode from coverage.py * Minor change * Minor change * Minor change * Fixed combine function * Minor change * Minor change * Minor change * Minor change * Minor change * Minor change * Minor change * Minor change * Minor change * Minor change * Minor change * Added __init__.py to be omitted * Removed aggregation step * Minor change * Removed explicit show report
1 parent 61a2d41 commit 60283ff

File tree

4 files changed

+5
-25
lines changed

4 files changed

+5
-25
lines changed

.github/workflows/github-actions.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,3 @@ jobs:
152152
- name: Run Coverage Tests
153153
run: ./test.sh coverage
154154
shell: bash
155-
- name: Generate Coverage Report
156-
run: ./test.sh report coverage.stumpy.xml
157-
shell: bash
158-
- name: Upload Coverage Tests Results
159-
uses: codecov/codecov-action@v4
160-
with:
161-
file: ./coverage.stumpy.xml
162-
verbose: true
163-
token: ${{ secrets.CODECOV_TOKEN }}

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
LOG*
99
PID
1010
.coverage*
11-
coverage.xml
12-
stumpy.coverage.xml
11+
coverage.json
12+
coverage.stumpy.json
1313
dask-worker-space
1414
stumpy.egg-info
1515
build

README.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
.. |Test Status| image:: https://github.com/stumpy-dev/stumpy/workflows/Tests/badge.svg
1818
:target: https://github.com/stumpy-dev/stumpy/actions?query=workflow%3ATests+branch%3Amain
1919
:alt: Test Status
20-
.. |Code Coverage| image:: https://codecov.io/gh/stumpy-dev/stumpy/graph/badge.svg?token=u0DooAbGji
21-
:target: https://codecov.io/gh/stumpy-dev/stumpy
20+
.. |Code Coverage| image:: https://img.shields.io/badge/Coverage-100%25-green
2221
:alt: Code Coverage
2322
.. |RTD Status| image:: https://readthedocs.org/projects/stumpy/badge/?version=latest
2423
:target: https://stumpy.readthedocs.io/

test.sh

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ print_mode="verbose"
55
custom_testfiles=()
66
max_iter=10
77
site_pkgs=$(python -c 'import site; print(site.getsitepackages()[0])')
8-
fcoveragexml="coverage.stumpy.xml"
98
# Parse command line arguments
109
for var in "$@"
1110
do
@@ -31,8 +30,6 @@ do
3130
custom_testfiles+=("$var")
3231
elif [[ $var =~ ^[\-0-9]+$ ]]; then
3332
max_iter=$var
34-
elif [[ "$var" == *".xml" ]]; then
35-
fcoveragexml=$var
3633
elif [[ "$var" == "links" ]]; then
3734
test_mode="links"
3835
else
@@ -170,14 +167,7 @@ set_ray_coveragerc()
170167
show_coverage_report()
171168
{
172169
set_ray_coveragerc
173-
coverage report -m --fail-under=100 --skip-covered --omit=fastmath.py,docstring.py,min_versions.py,ray_python_version.py $fcoveragerc
174-
}
175-
176-
gen_coverage_xml_report()
177-
{
178-
# This function saves the coverage report in Cobertura XML format, which is compatible with codecov
179-
set_ray_coveragerc
180-
coverage xml -o $fcoveragexml --fail-under=100 --omit=fastmath.py,docstring.py,min_versions.py,ray_python_version.py $fcoveragerc
170+
coverage report --show-missing --fail-under=100 --skip-covered --omit=fastmath.py,docstring.py,min_versions.py,ray_python_version.py $fcoveragerc
181171
}
182172

183173
test_custom()
@@ -384,7 +374,7 @@ elif [[ $test_mode == "report" ]]; then
384374
echo "Generate Coverage Report Only"
385375
# Assume coverage tests have already been executed
386376
# and a coverage file exists
387-
gen_coverage_xml_report
377+
show_coverage_report
388378
elif [[ $test_mode == "gpu" ]]; then
389379
echo "Executing GPU Unit Tests Only"
390380
test_gpu

0 commit comments

Comments
 (0)