Use codecov/codecov-action
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user