updated tests #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
whisper-test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- python-version: '3.8' | |
pytorch-version: 1.10.1 | |
numpy-requirement: "'numpy<2'" | |
- python-version: '3.8' | |
pytorch-version: 1.13.1 | |
numpy-requirement: "'numpy<2'" | |
- python-version: '3.8' | |
pytorch-version: 2.0.1 | |
numpy-requirement: "'numpy<2'" | |
- python-version: '3.9' | |
pytorch-version: 2.1.2 | |
numpy-requirement: "'numpy<2'" | |
- python-version: '3.10' | |
pytorch-version: 2.2.2 | |
numpy-requirement: "'numpy<2'" | |
- python-version: '3.11' | |
pytorch-version: 2.3.1 | |
numpy-requirement: "'numpy'" | |
- python-version: '3.12' | |
pytorch-version: 2.4.1 | |
numpy-requirement: "'numpy'" | |
- python-version: '3.12' | |
pytorch-version: 2.5.0 | |
numpy-requirement: "'numpy'" | |
steps: | |
- uses: conda-incubator/setup-miniconda@v3 | |
- run: conda install -n test ffmpeg python=${{ matrix.python-version }} | |
- uses: actions/checkout@v4 | |
- run: echo "$CONDA/envs/test/bin" >> $GITHUB_PATH | |
- run: pip3 install .["dev"] ${{ matrix.numpy-requirement }} torch==${{ matrix.pytorch-version }}+cpu --index-url https://download.pytorch.org/whl/cpu --extra-index-url https://pypi.org/simple | |
- run: python test/test_transcribe.py | |
- run: python test/test_align.py | |
- run: python test/test_refine.py |