From 2bfdff3e93e2c8e3681a66c3615bfa964a7d07bb Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Thu, 31 Mar 2022 11:45:30 +0200 Subject: [PATCH] ditch codecov (#370) codecov's new uploader cannot be used securely [1], so we take that opportunity to switch to something simpler. [1] https://github.com/codecov/codecov-action/issues/574 --- .github/workflows/main.yml | 7 +++---- README.md | 6 +++--- tox.ini | 2 +- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8041fde4..2aa95e24 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -52,11 +52,10 @@ jobs: with: python-version: ${{ matrix.py }} - run: pip install tox + - run: tox -e py -- -vvv --cov-fail-under=100 + if: matrix.py == '3.10.2' - run: tox -e py -- -vvv - - uses: codecov/codecov-action@a1ed4b322b4b38cb846afb5a0ebfa17086917d27 - with: - file: ./coverage.xml - name: ${{ matrix.os }} + if: matrix.py != '3.10.2' deploy: if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') diff --git a/README.md b/README.md index 614d1ace..6434c1d6 100644 --- a/README.md +++ b/README.md @@ -2,10 +2,10 @@ pdoc

pdoc documentation -CI Status -Code Coverage +CI Status +Code Coverage PyPI Version -Supported Python Versions +Supported Python Versions

API Documentation for Python Projects. diff --git a/tox.ini b/tox.ini index 43e2162b..6be93809 100644 --- a/tox.ini +++ b/tox.ini @@ -9,7 +9,7 @@ deps = -e . commands = pdoc --version - pytest --cov=pdoc --cov-config=tox.ini --cov-report xml --cov-report term-missing {posargs:-m "not slow"} + pytest --cov=pdoc --cov-config=tox.ini --cov-report term-missing {posargs:-m "not slow"} [testenv:flake8] commands = flake8 pdoc test {posargs}