Skip to content

Commit

Permalink
Merge pull request #25 from mdrachuk/coveralls
Browse files Browse the repository at this point in the history
Coveralls
  • Loading branch information
mdrachuk committed Aug 6, 2019
2 parents 7d4cd2a + 294f039 commit 437e76d
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 11 deletions.
14 changes: 10 additions & 4 deletions .pr-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,20 @@ steps:
displayName: 'Install dependencies'
- script: |
pip install pytest pytest-azurepipelines pytest-cov
pip install pytest pytest-cov
pytest tests --cov=serious --cov-report=html
displayName: 'Test with pytest'
displayName: 'Test'
- script: |
mypy serious
displayName: 'Check typings with mypy'
pip install coveralls
coveralls
displayName: 'Save code coverage'
env:
COVERALLS_REPO_TOKEN: $(COVERALLS_REPO_TOKEN)
- script: |
mypy serious
displayName: 'Check typings'
- script: |
python check_version.py
Expand Down
11 changes: 7 additions & 4 deletions .release-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,16 @@ steps:
displayName: 'Install dependencies'
- script: |
pip install pytest pytest-azurepipelines pytest-cov
pip install pytest pytest-cov
pytest tests --cov=serious --cov-report=html
displayName: 'Test with pytest'
displayName: 'Test'
- script: |
mypy serious
displayName: 'Check typings with mypy'
pip install coveralls
coveralls
displayName: 'Save code coverage'
env:
COVERALLS_REPO_TOKEN: $(COVERALLS_REPO_TOKEN)
- script: |
pip install setuptools wheel
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# serious
[![PyPI](https://img.shields.io/pypi/v/serious)][pypi]
[![Build Status](https://img.shields.io/azure-devops/build/misha-drachuk/serious/2)](https://dev.azure.com/misha-drachuk/serious/_build/latest?definitionId=1&branchName=master)
[![Test Coverage](https://img.shields.io/coveralls/github/mdrachuk/serious/master)](https://coveralls.io/github/mdrachuk/serious)
[![Supported Python](https://img.shields.io/pypi/pyversions/serious)][pypi]
[![Documentation](https://img.shields.io/readthedocs/serious)][docs]

Expand Down
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def readme(self):

config = Config(
name='serious',
version='1.0.0.dev10',
version='1.0.0.dev11',
readme_path='README.md',
author='mdrachuk',
author_email='misha@drach.uk'
Expand Down
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[![PyPI](https://img.shields.io/pypi/v/serious)](https://pypi.org/project/serious/)
[![Build Status](https://img.shields.io/azure-devops/build/misha-drachuk/serious/2)](https://dev.azure.com/misha-drachuk/serious/_build/latest?definitionId=1&branchName=master)
[![Test Coverage](https://img.shields.io/coveralls/github/mdrachuk/serious/master)](https://coveralls.io/github/mdrachuk/serious)
[![Supported Python](https://img.shields.io/pypi/pyversions/serious)](https://pypi.org/project/serious/)

One-- [preferable][zen] --way for object serialization and validation.
Expand Down
4 changes: 2 additions & 2 deletions docs/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ when they are missing from loaded JSON.

There are two types of Model as of now:

1. [`JsonModel`](models.md#jsonmodel): loads/dumps JSON formatted strings
2. [`DictModel`](models.md#dictmodel): loads/dumps `dict` objects
1. [`JsonModel`](models.md#jsonmodel) for JSON formatted strings.
2. [`DictModel`](models.md#dictmodel) for Python `dict` objects.

For more refer to [models docs](models.md).
# Simple Serialization
Expand Down

0 comments on commit 437e76d

Please sign in to comment.