mirror of
https://github.com/pyannote/pyannote-audio.git
synced 2026-11-20 13:07:51 +09:00
Co-authored-by: Hervé BREDIN <hbredin@users.noreply.github.com>
40 lines
1.0 KiB
YAML
40 lines
1.0 KiB
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
branches: [ develop ]
|
|
pull_request:
|
|
branches: [ develop ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: [3.7, 3.8]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Install library
|
|
run: |
|
|
sudo apt-get install libsndfile1
|
|
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
|