Skip to content

Commit d2ec84d

Browse files
committed
ci: Add coverage analysis via coveralls.io
1 parent 32f97d5 commit d2ec84d

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,7 @@ jobs:
3737
poetry install
3838
- name: Run tests
3939
run: python -m pytest tests
40+
- name: Report coverage
41+
env:
42+
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
43+
run: python -m coveralls

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ coverage = [
4747
{ version = ">=6.3.0", python = ">=3.7" },
4848
{ version = ">=4.5.4", python = "<3.7" },
4949
]
50+
coveralls = [
51+
{ version = ">=3.3.0", python = ">=3.5" },
52+
{ version = "<2", python = "<3.5" },
53+
]
5054
pytest-cov = "~2.8"
5155
flake8 = ">=3.6.0"
5256
mock = "^3.0.5"

0 commit comments

Comments
 (0)