Skip to content

Commit

Permalink
Update pytest to remove dependency on forked repositories; update not…
Browse files Browse the repository at this point in the history
…ebook to remove dependency installation
  • Loading branch information
Xinyuan Li committed Jan 31, 2024
1 parent f86207d commit 5b5e5ea
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 1,194 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/ci-icefall.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,23 +63,22 @@ jobs:
pip install -U torch==2.0.0 torchaudio==2.0.1 --index-url https://download.pytorch.org/whl/cpu
pip install k2==1.24.3.dev20230726+cpu.torch2.0.1 -f https://k2-fsa.github.io/k2/cpu.html
pip install lhotse
git clone https://github.com/HSTEHSTEHSTE/icefall_st.git
cd icefall_st
git checkout slu
git clone https://github.com/k2-fsa/icefall.git
cd icefall
pip install -r requirements.txt
pip install pytest
pip install pytest-cov
pip install kaldiio
pip install tensorflow
cd egs/slu
cd egs/fluent_speech_commands/SLU
wget -O epoch-6.pt https://www.dropbox.com/scl/fi/97wvdjmbuyj13kpzhricc/epoch-6.pt?rlkey=7mehc4v41fovfz0ksbt98krry&dl=0
wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id=1K-CaHTtJ-zZ5oW0us0OaKQmsD2-cO0xN' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=1K-CaHTtJ-zZ5oW0us0OaKQmsD2-cO0xN" -O frames.zip && rm -rf /tmp/cookies.txt1K-CaHTtJ-zZ5oW0us0OaKQmsD2-cO0xN
unzip frames.zip
- name: Test Action
run: |
cd icefall_st
cd icefall
export PYTHONPATH=$PYTHONPATH:$(pwd)
cd egs/slu/
cd egs/fluent_speech_commands/SLU
export PYTHONPATH=$PYTHONPATH:$(pwd)
pytest --cov-report=xml --cov=art --cov-append -q -vv ../../../tests/estimators/speech_recognition/test_pytorch_icefall.py --framework=pytorch --durations=0
- name: Upload coverage to Codecov
Expand Down
Loading

0 comments on commit 5b5e5ea

Please sign in to comment.