Skip to content

Commit

Permalink
Add codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
Stranger6667 committed Sep 20, 2019
1 parent 08d7988 commit 5913e3d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,18 @@ jobs:
- uses: actions/setup-python@v1
with:
python-version: '3.6'
- run: pip install tox
- run: pip install tox coverage
- run: tox -e py36
- run: coverage combine
- run: coverage report
- run: coverage xml -i
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1.0.2
with:
token: ${{secrets.CODECOV_TOKEN}}
file: ./coverage.xml
flags: unittests
name: codecov-py36

py37:
name: py37
Expand All @@ -53,5 +63,15 @@ jobs:
- uses: actions/setup-python@v1
with:
python-version: '3.7'
- run: pip install tox
- run: pip install tox coverage
- run: tox -e py37
- run: coverage combine
- run: coverage report
- run: coverage xml -i
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1.0.2
with:
token: ${{secrets.CODECOV_TOKEN}}
file: ./coverage.xml
flags: unittests
name: codecov-py37
5 changes: 4 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Schemathesis
============

|Build| |Version| |Python versions| |License|
|Build| |Coverage| |Version| |Python versions| |License|

Schemathesis is a tool for testing your web applications built with Open API / Swagger specifications.

Expand Down Expand Up @@ -182,6 +182,9 @@ will be licensed under its MIT license.

.. |Build| image:: https://github.com/kiwicom/schemathesis/workflows/build/badge.svg
:target: https://github.com/kiwicom/schemathesis/actions
.. |Coverage| image:: https://codecov.io/gh/kiwicom/schemathesis/branch/master/graph/badge.svg
:target: https://codecov.io/gh/kiwicom/schemathesis
:alt: codecov.io status for master branch
.. |Version| image:: https://img.shields.io/pypi/v/schemathesis.svg
:target: https://pypi.org/project/schemathesis/
.. |Python versions| image:: https://img.shields.io/pypi/pyversions/schemathesis.svg
Expand Down

0 comments on commit 5913e3d

Please sign in to comment.