diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8ead16b..75da162 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,6 +4,7 @@ on: pull_request: branches: [ master ] + jobs: test: runs-on: ubuntu-latest @@ -27,3 +28,14 @@ jobs: - name: Run tox run: tox + + - name: Code Coverage Summary Report + uses: irongut/CodeCoverageSummary@v1.3.0 + with: + filename: coverage.xml + badge: true + format: markdown + thresholds: '80 100' + output: 'both' + fail_below_min: 'true' + indicators: 'true' diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index dadfade..0000000 --- a/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: python -python: - - "3.6" - - "3.7" - - "3.8" -dist: xenial -install: pip install tox tox-venv tox-travis -script: tox \ No newline at end of file diff --git a/README.md b/README.md index 18a0680..dc2e42e 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ [![PyPI version](https://img.shields.io/pypi/v/python-logging-loki-v2.svg)](https://pypi.org/project/python-logging-loki-v2/) [![Python](https://img.shields.io/badge/python-3.9+-blue.svg)](https://www.python.org/) + Send Python logs directly to [Grafana Loki](https://grafana.com/loki) with minimal configuration. --- diff --git a/setup.py b/setup.py index 94bd39f..a52f8c2 100644 --- a/setup.py +++ b/setup.py @@ -19,15 +19,12 @@ python_requires=">=3.11", install_requires=["rfc3339>=6.1", "requests"], classifiers=[ - "Development Status :: 4 - Beta", + "Development Status :: 4 - Release", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.6", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.11", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: System :: Logging", "Topic :: Internet :: WWW/HTTP", diff --git a/tox.ini b/tox.ini index 7eda15d..658ecc4 100644 --- a/tox.ini +++ b/tox.ini @@ -11,7 +11,10 @@ deps = pytest coverage freezegun -commands = coverage run -m pytest [] +commands = + coverage run -m pytest [] + coverage report + coverage xml [testenv:ruff] skip_install = true