Skip to content
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
19 changes: 18 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
*.pyc
build
.coverage
coverage.lcov
dist
*.egg-info/
doc/_build
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
-------------------------------
Expand All @@ -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
----------------------
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Loading