GitHub Actions: Add Python 3.14 to the testing

Related to:
* #2487
This commit is contained in:
Christian Clauss 2025-09-21 11:19:06 +02:00
parent c0d2f624c0
commit ef7dbc0baf
2 changed files with 13 additions and 7 deletions

View File

@ -11,12 +11,12 @@ jobs:
pre-commit: pre-commit:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v5
- name: Fetch base branch - name: Fetch base branch
run: git fetch origin ${{ github.base_ref }} run: git fetch origin ${{ github.base_ref }}
- uses: actions/setup-python@v5 - uses: actions/setup-python@v6
with: with:
python-version: "3.9" python-version: "3.10"
architecture: x64 architecture: x64
- name: Get pip cache dir - name: Get pip cache dir
id: pip-cache id: pip-cache
@ -70,10 +70,16 @@ jobs:
- python-version: '3.13' - python-version: '3.13'
pytorch-version: 2.5.1 pytorch-version: 2.5.1
numpy-requirement: "'numpy'" numpy-requirement: "'numpy'"
- python-version: '3.14'
pytorch-version: 2.8.0
numpy-requirement: "'numpy>=2.3.4'"
steps: steps:
- uses: conda-incubator/setup-miniconda@v3 - uses: conda-incubator/setup-miniconda@v3
- run: conda install -n test ffmpeg python=${{ matrix.python-version }} - 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: 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' - run: pytest --durations=0 -vv -k 'not test_transcribe or test_transcribe[tiny] or test_transcribe[tiny.en]' -m 'not requires_cuda'

View File

@ -23,10 +23,10 @@ classifiers = [
dynamic = [ "version" ] dynamic = [ "version" ]
dependencies = [ dependencies = [
"more-itertools", "more-itertools",
"numba", "numba ; python_version < '3.14'", # https://github.com/numba/numba/issues/9957
"numpy", "numpy",
"tiktoken", "tiktoken",
"torch", "torch ; python_version < '3.14'", # https://github.com/pytorch/pytorch/issues/156856
"tqdm", "tqdm",
"triton>=2; (platform_machine=='x86_64' and sys_platform=='linux') or sys_platform=='linux2'", "triton>=2; (platform_machine=='x86_64' and sys_platform=='linux') or sys_platform=='linux2'",
] ]