mirror of
https://github.com/openai/whisper.git
synced 2025-11-24 14:35:57 +00:00
allowing numpy 2 in tests
This commit is contained in:
parent
25e5c364e0
commit
f68af3098c
8
.github/workflows/test.yml
vendored
8
.github/workflows/test.yml
vendored
@ -44,20 +44,26 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- python-version: '3.8'
|
- python-version: '3.8'
|
||||||
pytorch-version: 1.13.1
|
pytorch-version: 1.13.1
|
||||||
|
numpy-requirement: 'numpy<2'
|
||||||
- python-version: '3.8'
|
- python-version: '3.8'
|
||||||
pytorch-version: 2.0.1
|
pytorch-version: 2.0.1
|
||||||
|
numpy-requirement: 'numpy<2'
|
||||||
- python-version: '3.9'
|
- python-version: '3.9'
|
||||||
pytorch-version: 2.1.2
|
pytorch-version: 2.1.2
|
||||||
|
numpy-requirement: 'numpy<2'
|
||||||
- python-version: '3.10'
|
- python-version: '3.10'
|
||||||
pytorch-version: 2.2.2
|
pytorch-version: 2.2.2
|
||||||
|
numpy-requirement: 'numpy<2'
|
||||||
- python-version: '3.11'
|
- python-version: '3.11'
|
||||||
pytorch-version: 2.3.1
|
pytorch-version: 2.3.1
|
||||||
|
numpy-requirement: 'numpy'
|
||||||
- python-version: '3.12'
|
- python-version: '3.12'
|
||||||
pytorch-version: 2.4.1
|
pytorch-version: 2.4.1
|
||||||
|
numpy-requirement: 'numpy'
|
||||||
steps:
|
steps:
|
||||||
- uses: conda-incubator/setup-miniconda@v2
|
- uses: conda-incubator/setup-miniconda@v2
|
||||||
- run: conda install -n test ffmpeg python=${{ matrix.python-version }}
|
- run: conda install -n test ffmpeg python=${{ matrix.python-version }}
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- run: echo "$CONDA/envs/test/bin" >> $GITHUB_PATH
|
- run: echo "$CONDA/envs/test/bin" >> $GITHUB_PATH
|
||||||
- run: pip3 install .["dev"] 'numpy<2' torch==${{ matrix.pytorch-version }}+cpu --index-url https://download.pytorch.org/whl/cpu --extra-index-url https://pypi.org/simple
|
- 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: pytest --durations=0 -vv -k 'not test_transcribe or test_transcribe[tiny] or test_transcribe[tiny.en]' -m 'not requires_cuda'
|
- run: pytest --durations=0 -vv -k 'not test_transcribe or test_transcribe[tiny] or test_transcribe[tiny.en]' -m 'not requires_cuda'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user