feat: add codecov report

This commit is contained in:
Harry Coultas Blum authored and GitHub committed 2020-12-02 18:52:13 +01:00
1 parent 889f2b2ed7
commit 35e39136d6
2 files changed
+12 -14

No files matched your search

+9 -13
View File
@@ -26,19 +26,15 @@ jobs:
sudo apt-get install libsndfile1
- name: Install pyannote.audio
run: |
pip install -e .[dev,testing]
pip install -e .[dev,testing]
- name: Test with pytest
run: |
export PYANNOTE_DATABASE_CONFIG=$GITHUB_WORKSPACE/tests/data/database.yml
pytest
# Turn back on when the repository is public again
# - name: Generate coverage report
# run: |
# pytest --cov-report=xml
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v1
# with:
# file: ./coverage.xml
# env_vars: PYTHON
# name: codecov-fastaudio
# fail_ci_if_error: true
pytest --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml
env_vars: PYTHON
name: codecov-pyannote-audio
fail_ci_if_error: true
+3 -1
View File
@@ -8,7 +8,9 @@ def test_can_run_notebooks():
notebooks = glob("**/*.ipynb")
for nb in notebooks:
try:
pm.execute_notebook(nb, "/dev/null", kernel_name="python")
pm.execute_notebook(
nb, "/dev/null", progress_bar=False, kernel_name="python"
)
except Exception as e:
# Which notebook caused the error
raise Exception(nb, e)