Skip to content

Commit 286ccd3

Browse files
committed
feat: add coverage to ci
1 parent 414d1af commit 286ccd3

File tree

5 files changed

+22
-14
lines changed

5 files changed

+22
-14
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
pull_request:
55
branches: [ master ]
66

7+
78
jobs:
89
test:
910
runs-on: ubuntu-latest
@@ -27,3 +28,14 @@ jobs:
2728
2829
- name: Run tox
2930
run: tox
31+
32+
- name: Code Coverage Summary Report
33+
uses: irongut/CodeCoverageSummary@v1.3.0
34+
with:
35+
filename: coverage.xml
36+
badge: true
37+
format: markdown
38+
thresholds: '80 100'
39+
output: 'both'
40+
fail_below_min: 'true'
41+
indicators: 'true'

.travis.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33
> Modern Python logging handler for Grafana Loki
44
55
[![PyPI version](https://img.shields.io/pypi/v/python-logging-loki-v2.svg)](https://pypi.org/project/python-logging-loki-v2/)
6+
![CI](https://github.com/RomanR-dev/python-logging-loki/blob/master/.github/workflows/test.yml/badge.svg)
7+
![Code Coverage](https://img.shields.io/badge/Code%20Coverage-97%25-yellow?style=flat)
8+
69
[![Python](https://img.shields.io/badge/python-3.9+-blue.svg)](https://www.python.org/)
710

11+
812
Send Python logs directly to [Grafana Loki](https://grafana.com/loki) with minimal configuration.
913

1014
---

setup.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,12 @@
1919
python_requires=">=3.11",
2020
install_requires=["rfc3339>=6.1", "requests"],
2121
classifiers=[
22-
"Development Status :: 4 - Beta",
22+
"Development Status :: 4 - Release",
2323
"Intended Audience :: Developers",
2424
"License :: OSI Approved :: MIT License",
2525
"Operating System :: OS Independent",
2626
"Programming Language :: Python",
27-
"Programming Language :: Python :: 3",
28-
"Programming Language :: Python :: 3.6",
29-
"Programming Language :: Python :: 3.7",
30-
"Programming Language :: Python :: 3.8",
27+
"Programming Language :: Python :: 3.11",
3128
"Topic :: Software Development :: Libraries :: Python Modules",
3229
"Topic :: System :: Logging",
3330
"Topic :: Internet :: WWW/HTTP",

tox.ini

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ deps =
1111
pytest
1212
coverage
1313
freezegun
14-
commands = coverage run -m pytest []
14+
commands =
15+
coverage run -m pytest []
16+
coverage report
17+
coverage xml
1518

1619
[testenv:ruff]
1720
skip_install = true

0 commit comments

Comments
 (0)