diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 03b8e032..5f6dfe7e 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -31,7 +31,7 @@ jobs: pip install 'numpy<2.0' pip install matplotlib #Some imports require matplotlib pip install scipy #To not skip tests - pip install flake8 meson-python ninja pytest + pip install flake8 meson-python ninja pytest coveralls # if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Checkout Clawpack @@ -53,4 +53,14 @@ jobs: - name: Test with pytest run: | cd ${CLAW}/pyclaw - pytest --ignore=development -k "not test_shallow_sphere" + coverage run --source=src -m pytest --ignore=development -k "not test_shallow_sphere" + + - name: Upload to Coveralls + if: always() + run: | + cd ${CLAW}/pyclaw + ls -l .coverage + coveralls + env: + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index 32813780..03ead5d1 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ [![Build Status](https://github.com/clawpack/pyclaw/actions/workflows/testing.yml/badge.svg)](https://github.com/clawpack/pyclaw/actions) -[![Coverage Status](https://img.shields.io/coveralls/clawpack/pyclaw.svg)](https://coveralls.io/r/clawpack/pyclaw?branch=master) - +[![Coverage Status](https://coveralls.io/repos/github/clawpack/pyclaw/badge.svg?branch=master)](https://coveralls.io/r/clawpack/pyclaw?branch=master) [![PyPI version](https://badge.fury.io/py/clawpack.svg)](https://badge.fury.io/py/clawpack)