Skip to content

Commit

Permalink
Update pytest to remove dependency on forked branches; Implement exam…
Browse files Browse the repository at this point in the history
…ple Jupyter notebook
  • Loading branch information
Xinyuan Li committed Jan 31, 2024
1 parent 39a661e commit e2ddf45
Show file tree
Hide file tree
Showing 3 changed files with 794 additions and 142 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/ci-icefall.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,25 +63,26 @@ 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/transducer
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
cd transducer
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
uses: codecov/codecov-action@v3
with:
Expand Down
Loading

0 comments on commit e2ddf45

Please sign in to comment.