mirror of
https://github.com/openai/whisper.git
synced 2025-11-24 14:35:57 +00:00
Merge ef7dbc0baf9a0a1396cc63a328fb9b2e3e143f33 into c0d2f624c09dc18e709e37c2ad90c039a4eb72a2
This commit is contained in:
commit
32a3c978ad
16
.github/workflows/test.yml
vendored
16
.github/workflows/test.yml
vendored
@ -11,12 +11,12 @@ jobs:
|
||||
pre-commit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v5
|
||||
- name: Fetch base branch
|
||||
run: git fetch origin ${{ github.base_ref }}
|
||||
- uses: actions/setup-python@v5
|
||||
- uses: actions/setup-python@v6
|
||||
with:
|
||||
python-version: "3.9"
|
||||
python-version: "3.10"
|
||||
architecture: x64
|
||||
- name: Get pip cache dir
|
||||
id: pip-cache
|
||||
@ -70,10 +70,16 @@ jobs:
|
||||
- python-version: '3.13'
|
||||
pytorch-version: 2.5.1
|
||||
numpy-requirement: "'numpy'"
|
||||
- python-version: '3.14'
|
||||
pytorch-version: 2.8.0
|
||||
numpy-requirement: "'numpy>=2.3.4'"
|
||||
steps:
|
||||
- uses: conda-incubator/setup-miniconda@v3
|
||||
- run: conda install -n test ffmpeg python=${{ matrix.python-version }}
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v5
|
||||
- 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
|
||||
- if: matrix.python-version != '3.14'
|
||||
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
|
||||
- if: matrix.python-version == '3.14'
|
||||
run: pip3 install .["dev"] ${{ matrix.numpy-requirement }} --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'
|
||||
|
||||
@ -23,10 +23,10 @@ classifiers = [
|
||||
dynamic = [ "version" ]
|
||||
dependencies = [
|
||||
"more-itertools",
|
||||
"numba",
|
||||
"numba ; python_version < '3.14'", # https://github.com/numba/numba/issues/9957
|
||||
"numpy",
|
||||
"tiktoken",
|
||||
"torch",
|
||||
"torch ; python_version < '3.14'", # https://github.com/pytorch/pytorch/issues/156856
|
||||
"tqdm",
|
||||
"triton>=2; (platform_machine=='x86_64' and sys_platform=='linux') or sys_platform=='linux2'",
|
||||
]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user