UnitTest.yml 970 B

123456789101112131415161718192021222324252627282930313233343536
  1. name: FunASR Unit Test
  2. run-name: ${{ github.actor }} is testing out FunASR Unit Test 🚀
  3. on:
  4. pull_request:
  5. branches:
  6. - main
  7. push:
  8. branches:
  9. - dev_wjm
  10. - dev_jy
  11. jobs:
  12. build:
  13. runs-on: ubuntu-latest
  14. strategy:
  15. matrix:
  16. python-version: ["3.7"]
  17. steps:
  18. - uses: actions/checkout@v3
  19. - name: Set up Python ${{ matrix.python-version }}
  20. uses: actions/setup-python@v4
  21. with:
  22. python-version: ${{ matrix.python-version }}
  23. - name: Install dependencies
  24. run: |
  25. python -m pip install --upgrade pip
  26. pip install torch torchvision torchaudio
  27. pip install "modelscope[audio_asr]" --upgrade -f \
  28. https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html
  29. if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
  30. pip install -e ./
  31. - name: Testing
  32. run:
  33. python tests/run_test.py