This commit is contained in:
Fangjun Kuang 2021-07-24 18:05:19 +08:00
parent ee83a3e67c
commit 54436182a4

View File

@ -47,7 +47,7 @@ jobs:
- name: Install Python dependencies
run: |
python3 -m pip install --upgrade pip pytest
python3 -m pip install --upgrade pip pytest kaldialign
pip install k2==${{ matrix.k2-version }}+cpu.torch${{ matrix.torch }} -f https://k2-fsa.org/nightly/
# Don't use: pip install lhotse
@ -58,8 +58,19 @@ jobs:
- name: Run tests
if: startsWith(matrix.os, 'ubuntu')
run: |
ls -lh
export PYTHONPATH=$PWD:$PWD/lhotse:$PYTHONPATH
echo $PYTHONPATH
pytest ./test
- name: Run tests
if: startsWith(matrix.os, 'macos')
run: |
ls -lh
export PYTHONPATH=$PWD:$PWD/lhotse:$PYTHONPATH
lib_path=$(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
echo "lib_path: $lib_path"
export DYLD_LIBRARY_PATH=$lib_path:$DYLD_LIBRARY_PATH
pytest ./test