mirror of
https://github.com/openai/whisper.git
synced 2025-11-29 16:38:40 +00:00
add github action to run pytest
This commit is contained in:
parent
0f39c89d92
commit
493dfffa37
26
.github/workflows/test.yml
vendored
Normal file
26
.github/workflows/test.yml
vendored
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
name: test
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
jobs:
|
||||||
|
CLIP-test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
python-version: ['3.8', '3.9', '3.10']
|
||||||
|
pytorch-version: [1.10.2, 1.13.1]
|
||||||
|
exclude:
|
||||||
|
- python-version: '3.10'
|
||||||
|
pytorch-version: 1.10.2
|
||||||
|
steps:
|
||||||
|
- uses: conda-incubator/setup-miniconda@v2
|
||||||
|
- run: conda install -n test python=${{ matrix.python-version }} pytorch=${{ matrix.pytorch-version }} cpuonly -c pytorch
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- run: echo "$CONDA/envs/test/bin" >> $GITHUB_PATH
|
||||||
|
- run: pip install pytest
|
||||||
|
- run: pip install .
|
||||||
|
- run: pytest -k 'not test_transcribe or test_transcribe[tiny]'
|
||||||
Loading…
x
Reference in New Issue
Block a user