test.yml 762 B

1234567891011121314151617181920212223242526
  1. name: test
  2. on:
  3. push:
  4. branches:
  5. - main
  6. pull_request:
  7. branches:
  8. - main
  9. jobs:
  10. whisper-test:
  11. runs-on: ubuntu-latest
  12. strategy:
  13. matrix:
  14. python-version: ['3.8', '3.9', '3.10']
  15. pytorch-version: [1.10.2, 1.13.1]
  16. exclude:
  17. - python-version: '3.10'
  18. pytorch-version: 1.10.2
  19. steps:
  20. - uses: conda-incubator/setup-miniconda@v2
  21. - run: conda install -n test ffmpeg python=${{ matrix.python-version }} pytorch=${{ matrix.pytorch-version }} cpuonly -c pytorch
  22. - uses: actions/checkout@v2
  23. - run: echo "$CONDA/envs/test/bin" >> $GITHUB_PATH
  24. - run: pip install pytest
  25. - run: pip install .
  26. - run: pytest -k 'not test_transcribe or test_transcribe[tiny]'