mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-09 01:52:41 +00:00
Fix CI dependencies installation.
This commit is contained in:
parent
2e33e24348
commit
ee83a3e67c
14
.github/workflows/test.yml
vendored
14
.github/workflows/test.yml
vendored
@ -47,11 +47,19 @@ jobs:
|
|||||||
|
|
||||||
- name: Install Python dependencies
|
- name: Install Python dependencies
|
||||||
run: |
|
run: |
|
||||||
python3 -m pip install --upgrade pip
|
python3 -m pip install --upgrade pip pytest
|
||||||
pip install k2==${{ matrix.k2-version }}+cpu.torch${{ matrix.torch }} -f https://k2-fsa.org/nightly/
|
pip install k2==${{ matrix.k2-version }}+cpu.torch${{ matrix.torch }} -f https://k2-fsa.org/nightly/
|
||||||
pip install git+https://github.com/lhotse-speech/lhotse
|
|
||||||
|
# Don't use: pip install lhotse
|
||||||
|
# since it installs a version of PyTorch that is not predictable
|
||||||
|
git clone --depth 1 https://github.com/lhotse-speech/lhotse
|
||||||
|
cd lhotse
|
||||||
|
sed -i.bak "/torch/d" requirements.txt
|
||||||
|
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
export PYTHONPATH=$PWD:$PYTHONPATH
|
ls -lh
|
||||||
|
export PYTHONPATH=$PWD:$PWD/lhotse:$PYTHONPATH
|
||||||
|
echo $PYTHONPATH
|
||||||
pytest ./test
|
pytest ./test
|
||||||
|
Loading…
x
Reference in New Issue
Block a user