mirror of
https://github.com/pyannote/pyannote-audio.git
synced 2026-11-20 13:07:51 +09:00
feat: add codecov report
This commit is contained in:
1 parent
889f2b2ed7
commit
35e39136d6
2 files changed
+12
-14
No files matched your search
@@ -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
|
||||
@@ -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)
|
||||
Reference in new issue
Block a user