From 6c402174c130d913ccc0f4fc71c7ab60a095b8b7 Mon Sep 17 00:00:00 2001 From: Erik Welch Date: Wed, 11 Oct 2023 09:48:56 -0500 Subject: [PATCH] Drop coveralls (use codecov instead) --- .github/workflows/test_and_build.yml | 56 +--------------------------- README.md | 2 +- 2 files changed, 3 insertions(+), 55 deletions(-) diff --git a/.github/workflows/test_and_build.yml b/.github/workflows/test_and_build.yml index b1ca58616..bf34f1ce5 100644 --- a/.github/workflows/test_and_build.yml +++ b/.github/workflows/test_and_build.yml @@ -272,15 +272,10 @@ jobs: numba=numba${numbaver} sparse=sparse${sparsever} fi - if [[ ${{ startsWith(steps.pyver.outputs.selected, '3.12') }} == true ]]; then - coveralls="" - else - coveralls="coveralls=3.3.1" - fi echo "versions: np${npver} sp${spver} pd${pdver} ak${akver} nx${nxver} numba${numbaver} yaml${yamlver} sparse${sparsever} psg${psgver}" set -x # echo on - $(command -v mamba || command -v conda) install packaging pytest coverage ${coveralls} pytest-randomly cffi donfig tomli c-compiler make \ + $(command -v mamba || command -v conda) install packaging pytest coverage pytest-randomly cffi donfig tomli c-compiler make \ pyyaml${yamlver} ${sparse} pandas${pdver} scipy${spver} numpy${npver} ${awkward} \ networkx${nxver} ${numba} ${fmm} ${psg} \ ${{ matrix.slowtask == 'pytest_bizarro' && 'black' || '' }} \ @@ -422,42 +417,10 @@ jobs: coverage run -a -m graphblas.core.automethods coverage run -a -m graphblas.core.infixmethods git diff --exit-code - - name: Coverage1 - id: coverageAttempt1 - if: startsWith(steps.pyver.outputs.selected, '3.12') != true - continue-on-error: true - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - COVERALLS_FLAG_NAME: ${{ matrix.os }}/${{ matrix.slowtask }} - COVERALLS_PARALLEL: true + - name: Coverage run: | coverage xml coverage report --show-missing - coveralls --service=github - # Retry upload if first attempt failed. - # This happens somewhat randomly and for irregular reasons. - # Logic is a duplicate of previous step. - - name: Coverage2 - id: coverageAttempt2 - if: steps.coverageAttempt1.outcome == 'failure' - continue-on-error: true - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - COVERALLS_FLAG_NAME: ${{ matrix.os }}/${{ matrix.slowtask }} - COVERALLS_PARALLEL: true - run: | - coveralls --service=github - - name: Coverage3 - id: coverageAttempt3 - if: steps.coverageAttempt2.outcome == 'failure' - # Continue even if it failed 3 times... (sheesh! use codecov instead) - continue-on-error: true - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - COVERALLS_FLAG_NAME: ${{ matrix.os }}/${{ matrix.slowtask }} - COVERALLS_PARALLEL: true - run: | - coveralls --service=github - name: codecov uses: codecov/codecov-action@v3 - name: Notebooks Execution check @@ -467,18 +430,3 @@ jobs: if python -c 'import numba' 2> /dev/null ; then jupyter nbconvert --to notebook --execute notebooks/*ipynb fi - - finish: - needs: build_and_test - if: always() - runs-on: ubuntu-latest - steps: - - uses: actions/setup-python@v4 - with: - python-version: "3.10" - - run: python -m pip install --upgrade pip - - run: pip install coveralls - - name: Coveralls Finished - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: coveralls --finish diff --git a/README.md b/README.md index 4509e44ac..0a4342dd3 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@
[![Tests](https://github.com/python-graphblas/python-graphblas/workflows/Tests/badge.svg?branch=main)](https://github.com/python-graphblas/python-graphblas/actions) [![Docs](https://readthedocs.org/projects/python-graphblas/badge/?version=latest)](https://python-graphblas.readthedocs.io/en/latest/) -[![Coverage](https://coveralls.io/repos/python-graphblas/python-graphblas/badge.svg?branch=main)](https://coveralls.io/r/python-graphblas/python-graphblas) +[![Coverage](https://codecov.io/gh/python-graphblas/python-graphblas/graph/badge.svg?token=D7HHLDPQ2Q)](https://codecov.io/gh/python-graphblas/python-graphblas) [![pyOpenSci](https://tinyurl.com/y22nb8up)](https://github.com/pyOpenSci/software-review/issues/81)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.7328791.svg)](https://doi.org/10.5281/zenodo.7328791)