Skip to content

Fixed #1086 Remove Codecov #1084

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 27 commits into from
Jun 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,3 @@ jobs:
- name: Run Coverage Tests
run: ./test.sh coverage
shell: bash
- name: Generate Coverage Report
run: ./test.sh report coverage.stumpy.xml
shell: bash
- name: Upload Coverage Tests Results
uses: codecov/codecov-action@v4
with:
file: ./coverage.stumpy.xml
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
LOG*
PID
.coverage*
coverage.xml
stumpy.coverage.xml
coverage.json
coverage.stumpy.json
dask-worker-space
stumpy.egg-info
build
Expand Down
3 changes: 1 addition & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
.. |Test Status| image:: https://github.com/stumpy-dev/stumpy/workflows/Tests/badge.svg
:target: https://github.com/stumpy-dev/stumpy/actions?query=workflow%3ATests+branch%3Amain
:alt: Test Status
.. |Code Coverage| image:: https://codecov.io/gh/stumpy-dev/stumpy/graph/badge.svg?token=u0DooAbGji
:target: https://codecov.io/gh/stumpy-dev/stumpy
.. |Code Coverage| image:: https://img.shields.io/badge/Coverage-100%25-green
:alt: Code Coverage
.. |RTD Status| image:: https://readthedocs.org/projects/stumpy/badge/?version=latest
:target: https://stumpy.readthedocs.io/
Expand Down
14 changes: 2 additions & 12 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ print_mode="verbose"
custom_testfiles=()
max_iter=10
site_pkgs=$(python -c 'import site; print(site.getsitepackages()[0])')
fcoveragexml="coverage.stumpy.xml"
# Parse command line arguments
for var in "$@"
do
Expand All @@ -31,8 +30,6 @@ do
custom_testfiles+=("$var")
elif [[ $var =~ ^[\-0-9]+$ ]]; then
max_iter=$var
elif [[ "$var" == *".xml" ]]; then
fcoveragexml=$var
elif [[ "$var" == "links" ]]; then
test_mode="links"
else
Expand Down Expand Up @@ -170,14 +167,7 @@ set_ray_coveragerc()
show_coverage_report()
{
set_ray_coveragerc
coverage report -m --fail-under=100 --skip-covered --omit=fastmath.py,docstring.py,min_versions.py,ray_python_version.py $fcoveragerc
}

gen_coverage_xml_report()
{
# This function saves the coverage report in Cobertura XML format, which is compatible with codecov
set_ray_coveragerc
coverage xml -o $fcoveragexml --fail-under=100 --omit=fastmath.py,docstring.py,min_versions.py,ray_python_version.py $fcoveragerc
coverage report --show-missing --fail-under=100 --skip-covered --omit=fastmath.py,docstring.py,min_versions.py,ray_python_version.py $fcoveragerc
}

test_custom()
Expand Down Expand Up @@ -384,7 +374,7 @@ elif [[ $test_mode == "report" ]]; then
echo "Generate Coverage Report Only"
# Assume coverage tests have already been executed
# and a coverage file exists
gen_coverage_xml_report
show_coverage_report
elif [[ $test_mode == "gpu" ]]; then
echo "Executing GPU Unit Tests Only"
test_gpu
Expand Down