From aace418a85eacd735f05619b194376f6333263e5 Mon Sep 17 00:00:00 2001 From: ImSavsis Date: Sun, 19 Jul 2026 20:45:54 +0500 Subject: [PATCH] ci: add coverage tracking and badges --- .github/workflows/ci.yml | 6 +++++- .gitignore | 2 ++ README.md | 7 +++++++ pyproject.toml | 2 +- 4 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e8b818c..c91e180 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,6 +16,10 @@ jobs: with: python-version: ${{ matrix.python-version }} - run: pip install -e .[dev] - - run: pytest + - run: pytest --cov=savdoh --cov-report=xml + - uses: codecov/codecov-action@v4 + if: matrix.python-version == '3.12' + with: + files: ./coverage.xml - run: python -m build - run: python -m twine check dist/* diff --git a/.gitignore b/.gitignore index 385896e..a521546 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,5 @@ dist/ build/ *.egg-info/ .claude/ +.coverage +coverage.xml diff --git a/README.md b/README.md index 18250f7..d670006 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,12 @@ # savdoh +[![CI](https://github.com/ImSavsis/savdoh/actions/workflows/ci.yml/badge.svg)](https://github.com/ImSavsis/savdoh/actions/workflows/ci.yml) +[![Coverage](https://codecov.io/gh/ImSavsis/savdoh/branch/master/graph/badge.svg)](https://codecov.io/gh/ImSavsis/savdoh) +[![pypi](https://img.shields.io/pypi/v/savdoh.svg)](https://pypi.org/project/savdoh/) +[![downloads](https://img.shields.io/pypi/dm/savdoh.svg)](https://pypi.org/project/savdoh/) +[![versions](https://img.shields.io/pypi/pyversions/savdoh.svg)](https://pypi.org/project/savdoh/) +[![license](https://img.shields.io/github/license/ImSavsis/savdoh.svg)](https://github.com/ImSavsis/savdoh/blob/master/LICENSE) + DNS-over-HTTPS резолвер для питона. ноль зависимостей — весь HTTPS через стандартный `http.client`+`ssl`. провайдер/DPI видит только твой HTTPS к cloudflare, а не голые DNS-запросы. ```mermaid diff --git a/pyproject.toml b/pyproject.toml index e413347..6362b70 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,7 +27,7 @@ Homepage = "https://github.com/ImSavsis/savdoh" Issues = "https://github.com/ImSavsis/savdoh/issues" [project.optional-dependencies] -dev = ["pytest", "build", "twine"] +dev = ["pytest", "pytest-cov", "build", "twine"] [tool.hatch.build.targets.wheel] packages = ["src/savdoh"]