ci: add coverage tracking and badges
This commit is contained in:
parent
ad45cc3e28
commit
aace418a85
4 changed files with 15 additions and 2 deletions
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
|
@ -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
2
.gitignore
vendored
|
|
@ -5,3 +5,5 @@ dist/
|
||||||
build/
|
build/
|
||||||
*.egg-info/
|
*.egg-info/
|
||||||
.claude/
|
.claude/
|
||||||
|
.coverage
|
||||||
|
coverage.xml
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,12 @@
|
||||||
# savdoh
|
# savdoh
|
||||||
|
|
||||||
|
[](https://github.com/ImSavsis/savdoh/actions/workflows/ci.yml)
|
||||||
|
[](https://codecov.io/gh/ImSavsis/savdoh)
|
||||||
|
[](https://pypi.org/project/savdoh/)
|
||||||
|
[](https://pypi.org/project/savdoh/)
|
||||||
|
[](https://pypi.org/project/savdoh/)
|
||||||
|
[](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
|
||||||
|
|
|
||||||
|
|
@ -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"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue