From ee83a3e67c7af3adf7b954a1daf1531c41b08661 Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Sat, 24 Jul 2021 17:55:45 +0800 Subject: [PATCH] Fix CI dependencies installation. --- .github/workflows/test.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f65023d3f..91fc2ae21 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -47,11 +47,19 @@ jobs: - name: Install Python dependencies 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 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 run: | - export PYTHONPATH=$PWD:$PYTHONPATH + ls -lh + export PYTHONPATH=$PWD:$PWD/lhotse:$PYTHONPATH + echo $PYTHONPATH pytest ./test