ci: add coverage tracking and badges

This commit is contained in:
ImSavsis 2026-07-19 20:45:54 +05:00
parent ad45cc3e28
commit aace418a85
4 changed files with 15 additions and 2 deletions

View file

@ -16,6 +16,10 @@ jobs:
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- run: pip install -e .[dev] - 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 build
- run: python -m twine check dist/* - run: python -m twine check dist/*

2
.gitignore vendored
View file

@ -5,3 +5,5 @@ dist/
build/ build/
*.egg-info/ *.egg-info/
.claude/ .claude/
.coverage
coverage.xml

View file

@ -1,5 +1,12 @@
# savdoh # 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-запросы. DNS-over-HTTPS резолвер для питона. ноль зависимостей — весь HTTPS через стандартный `http.client`+`ssl`. провайдер/DPI видит только твой HTTPS к cloudflare, а не голые DNS-запросы.
```mermaid ```mermaid

View file

@ -27,7 +27,7 @@ Homepage = "https://github.com/ImSavsis/savdoh"
Issues = "https://github.com/ImSavsis/savdoh/issues" Issues = "https://github.com/ImSavsis/savdoh/issues"
[project.optional-dependencies] [project.optional-dependencies]
dev = ["pytest", "build", "twine"] dev = ["pytest", "pytest-cov", "build", "twine"]
[tool.hatch.build.targets.wheel] [tool.hatch.build.targets.wheel]
packages = ["src/savdoh"] packages = ["src/savdoh"]