Skip to content

Commit 2bfdff3

Browse files
authored
ditch codecov (#370)
codecov's new uploader cannot be used securely [1], so we take that opportunity to switch to something simpler. [1] codecov/codecov-action#574
1 parent 7dc9e17 commit 2bfdff3

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

.github/workflows/main.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,10 @@ jobs:
5252
with:
5353
python-version: ${{ matrix.py }}
5454
- run: pip install tox
55+
- run: tox -e py -- -vvv --cov-fail-under=100
56+
if: matrix.py == '3.10.2'
5557
- run: tox -e py -- -vvv
56-
- uses: codecov/codecov-action@a1ed4b322b4b38cb846afb5a0ebfa17086917d27
57-
with:
58-
file: ./coverage.xml
59-
name: ${{ matrix.os }}
58+
if: matrix.py != '3.10.2'
6059

6160
deploy:
6261
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<a href="https://pdoc.dev/"><img alt="pdoc" src="https://pdoc.dev/logo.svg" width="200" height="100" /></a>
33
<br><br>
44
<a href="https://pdoc.dev/docs/pdoc.html"><img height="20" alt="pdoc documentation" src="https://shields.mitmproxy.org/badge/docs-pdoc.dev-brightgreen.svg"></a>
5-
<a href="https://github.com/mitmproxy/pdoc/actions?query=branch%3Amain"><img height="20" alt="CI Status" src="https://shields.mitmproxy.org/github/workflow/status/mitmproxy/pdoc/CI?label=CI&logo=github"></a>
6-
<a href="https://codecov.io/gh/mitmproxy/pdoc"><img height="20" alt="Code Coverage" src="https://shields.mitmproxy.org/codecov/c/github/mitmproxy/pdoc/main.svg?label=codecov&logo=codecov&logoColor=white"></a>
5+
<img height="20" alt="CI Status" src="https://shields.mitmproxy.org/github/workflow/status/mitmproxy/pdoc/CI?label=CI&logo=github">
6+
<img height="20" alt="Code Coverage" src="https://shields.mitmproxy.org/badge/coverage-100%25-brightgreen">
77
<a href="https://pypi.python.org/pypi/pdoc"><img height="20" alt="PyPI Version" src="https://shields.mitmproxy.org/pypi/v/pdoc.svg"></a>
8-
<a href="https://pypi.python.org/pypi/pdoc"><img height="20" alt="Supported Python Versions" src="https://shields.mitmproxy.org/pypi/pyversions/pdoc.svg"></a>
8+
<img height="20" alt="Supported Python Versions" src="https://shields.mitmproxy.org/pypi/pyversions/pdoc.svg">
99
</p>
1010

1111
API Documentation for Python Projects.

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ deps =
99
-e .
1010
commands =
1111
pdoc --version
12-
pytest --cov=pdoc --cov-config=tox.ini --cov-report xml --cov-report term-missing {posargs:-m "not slow"}
12+
pytest --cov=pdoc --cov-config=tox.ini --cov-report term-missing {posargs:-m "not slow"}
1313

1414
[testenv:flake8]
1515
commands = flake8 pdoc test {posargs}

0 commit comments

Comments
 (0)