diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index dd97bf4..96abc3b 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -25,7 +25,7 @@ jobs: python -m pip install --upgrade pip pip install flake8 pytest hypothesis if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - pip install coveralls + pip install coverage # - name: Lint with flake8 # run: | # stop the build if there are Python syntax errors or undefined names @@ -41,3 +41,20 @@ jobs: - name: Coverage report run: | coverage report + coverage lcov + - name: Upload coverage to Coveralls + uses: coverallsapp/github-action@v2 + with: + file: coverage.lcov + flag-name: python-${{ matrix.python-version }} + parallel: true + + coverage: + needs: build + if: ${{ always() }} + runs-on: ubuntu-latest + steps: + - name: Finish Coveralls build + uses: coverallsapp/github-action@v2 + with: + parallel-finished: true diff --git a/.gitignore b/.gitignore index 0998c1b..912dd5c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ *.pyc build .coverage +coverage.lcov dist *.egg-info/ doc/_build diff --git a/README.md b/README.md index 964b0fa..db67db2 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ python-json-patch [![PyPI version](https://img.shields.io/pypi/v/jsonpatch.svg)](https://pypi.org/project/jsonpatch//) [![Supported Python versions](https://img.shields.io/pypi/pyversions/jsonpatch.svg)](https://pypi.org/project/jsonpatch//) [![Build Status](https://github.com/stefankoegl/python-json-patch/actions/workflows/test.yaml/badge.svg?branch=master)](https://github.com/stefankoegl/python-json-patch/actions/workflows/test.yaml) -[![Coverage Status](https://coveralls.io/repos/stefankoegl/python-json-patch/badge.png?branch=master)](https://coveralls.io/r/stefankoegl/python-json-patch?branch=master) +[![Coverage Status](https://coveralls.io/repos/github/stefankoegl/python-json-patch/badge.svg?branch=master)](https://coveralls.io/github/stefankoegl/python-json-patch?branch=master) Applying JSON Patches in Python ------------------------------- @@ -19,7 +19,7 @@ See source code for examples * Documentation: https://python-json-patch.readthedocs.org/ * PyPI: https://pypi.org/project/jsonpatch/ * CI: https://github.com/stefankoegl/python-json-patch/actions -* Coveralls: https://coveralls.io/r/stefankoegl/python-json-patch +* Coveralls: https://coveralls.io/github/stefankoegl/python-json-patch Running external tests ---------------------- diff --git a/setup.py b/setup.py index f78ad1f..edf2dca 100644 --- a/setup.py +++ b/setup.py @@ -65,7 +65,7 @@ 'Documentation': "https://python-json-patch.readthedocs.org/", 'PyPI': 'https://pypi.org/pypi/jsonpatch', 'Tests': 'https://github.com/stefankoegl/python-json-patch/actions', - 'Test Coverage': 'https://coveralls.io/r/stefankoegl/python-json-patch', + 'Test Coverage': 'https://coveralls.io/github/stefankoegl/python-json-patch', }, install_requires=REQUIREMENTS, )