Use codecov/codecov-action

This commit is contained in:
Sergey B Kirpichev
2023-03-29 11:35:11 +03:00
parent d4b4ff08e4
commit 8df4ff06ad
2 changed files with 9 additions and 3 deletions
+9 -2
View File
@@ -30,13 +30,20 @@ jobs:
- name: Remove gmpy on 3.10
if: matrix.python-version == 3.10
run: pip uninstall -y gmpy2
- name: Run coverage tests & upload results
- name: Run coverage tests
env:
PYTEST_ADDOPTS: --cov mpmath
if: matrix.python-version == 3.10 || matrix.python-version == 3.11
run: |
pytest
codecov --required
coverage html
coverage xml
- name: Upload coverage data
if: matrix.python-version == 2.7 || matrix.python-version == 3.6
uses: codecov/codecov-action@v3
with:
files: ./coverage.xml
fail_ci_if_error: true
- name: Building docs
run: |
sphinx-build --color -W --keep-going -b html docs build/sphinx/html
-1
View File
@@ -34,7 +34,6 @@ tests = pytest >= 6
develop = %(tests)s
pycodestyle
pytest-cov
codecov
wheel
gmpy =
gmpy2>=2.1.0a4; platform_python_implementation!="PyPy" and python_version>="3.6"