Skip to content

Commit

Permalink
Merge pull request #2 from PandoraMedia/coveralls
Browse files Browse the repository at this point in the history
Add coveralls.io support
  • Loading branch information
eweiser-sxm authored Apr 26, 2022
2 parents 311b4c0 + 074bbc4 commit c10a1ec
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 9 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,11 @@ on:

jobs:
build:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", pypy-3.8]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -35,6 +33,23 @@ jobs:
- name: Test with pytest
run: |
coverage run -m pytest tests
- name: Report code coverage
- name: Upload coverage data to coveralls.io
run: coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: ${{ matrix.python-version }}
COVERALLS_PARALLEL: true

# Finish parallel coverage reporting
coveralls:
name: Indicate completion to coveralls.io
needs: build
runs-on: ubuntu-latest
container: python:3-slim
steps:
- name: Finished
run: |
coverage report -m --fail-under 100 --skip-covered
pip3 install --upgrade coveralls
coveralls --service=github --finish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ coverage.xml
.coverage.*
build/
wheels/
*.lcov
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ TestRail Data Model
[![PyPI - Python Version][pypi-python-versions-badge]][pypi]
[![PyPI - Implementation][pypi-implementations-badge]][pypi]
[![License][license-badge]][license-link]
[![Coverage Status][coveralls-badge]][coveralls-link]

This package provides an object-oriented representation of TestRail data using
Python [data classes][python-dataclasses]. This object structure facilitates the development
Expand Down Expand Up @@ -55,16 +56,18 @@ Authors
* [Rob Whitlock](https://github.com/robwhitlock666)
* [Rong Zheng](https://github.com/rzheng7)

[python-dataclasses]: https://docs.python.org/3/library/dataclasses.html
[gurock-testrail-api-documentation]: https://www.gurock.com/testrail/docs/api/
[tolstislon-testrail-api]: https://github.com/tolstislon/testrail-api
[coveralls-badge]: https://coveralls.io/repos/github/PandoraMedia/testrail-data-model/badge.svg
[coveralls-link]: https://coveralls.io/github/PandoraMedia/testrail-data-model
[gh-action-python-package]: https://github.com/PandoraMedia/testrail-data-model/actions/workflows/python-package.yml
[gh-action-python-package-badge]: https://github.com/PandoraMedia/testrail-data-model/actions/workflows/python-package.yml/badge.svg
[gurock-testrail-api-documentation]: https://www.gurock.com/testrail/docs/api/
[license-badge]: https://img.shields.io/badge/License-Apache_2.0-blue.svg
[license-link]: https://raw.githubusercontent.com/PandoraMedia/testrail-data-model/master/LICENSE
[pepy-downloads-badge]: https://static.pepy.tech/personalized-badge/testrail-data-model?period=total&units=international_system&left_color=gray&right_color=blue&left_text=Downloads
[pepy-downloads-link]: https://pepy.tech/project/testrail-data-model
[pypi]: https://pypi.org/project/testrail-data-model/
[pypi-latest-release-badge]: https://img.shields.io/pypi/v/testrail-data-model?color=blue&label=pypi&logo=version
[pypi-implementations-badge]: https://img.shields.io/pypi/implementation/testrail-data-model
[pypi-python-versions-badge]: https://img.shields.io/pypi/pyversions/testrail-data-model.svg
[pepy-downloads-badge]: https://static.pepy.tech/personalized-badge/testrail-data-model?period=total&units=international_system&left_color=gray&right_color=blue&left_text=Downloads
[pepy-downloads-link]: https://pepy.tech/project/testrail-data-model
[python-dataclasses]: https://docs.python.org/3/library/dataclasses.html
[tolstislon-testrail-api]: https://github.com/tolstislon/testrail-api
1 change: 1 addition & 0 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
coverage
coveralls
mimesis
pbr
pylint
Expand Down

0 comments on commit c10a1ec

Please sign in to comment.