diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 75e7570..214e057 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -47,13 +47,7 @@ jobs: - name: tox env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: tox -e py,lint,release - - - uses: codecov/codecov-action@v2 - with: - name: ${{ matrix.os }}_${{ matrix.python-version}} - fail_ci_if_error: true - verbose: true + run: tox -e py,lint,release # coveralls - name: upload dist uses: actions/upload-artifact@v3 diff --git a/README.rst b/README.rst index 4da1b86..6422e85 100644 --- a/README.rst +++ b/README.rst @@ -6,6 +6,9 @@ |_|_|_\___/\__,_\___|_| |_||_|_/__\___| +.. image:: https://img.shields.io/coveralls/github/PyCQA/modernize?label=coveralls&logo=coveralls + :alt: Coveralls + :target: https://coveralls.io/github/PyCQA/modernize .. image:: https://img.shields.io/readthedocs/modernize?logo=read-the-docs :alt: Read the Docs :target: https://modernize.readthedocs.io/en/latest/ diff --git a/pyproject.toml b/pyproject.toml index 5bb0f1c..e39f2bf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -98,6 +98,13 @@ wheel_build_env = build # empty environment to build universal wheel once per tox invocation # https://github.com/ionelmc/tox-wheel#build-configuration +[testenv:coveralls] +passenv = GITHUB_* +deps = + coveralls + coverage>=5.3 +commands = coveralls + [testenv:lint] deps = pre-commit commands = pre-commit run --all-files --show-diff-on-failure {posargs}