Skip to content

Commit 8bf6bd3

Browse files
committed
GitHub Actions: Add Python 3.14 to the testing
Related to: * #2487
1 parent c0d2f62 commit 8bf6bd3

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

.github/workflows/test.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ jobs:
1111
pre-commit:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v5
1515
- name: Fetch base branch
1616
run: git fetch origin ${{ github.base_ref }}
17-
- uses: actions/setup-python@v5
17+
- uses: actions/setup-python@v6
1818
with:
19-
python-version: "3.9"
19+
python-version: "3.10"
2020
architecture: x64
2121
- name: Get pip cache dir
2222
id: pip-cache
@@ -70,10 +70,16 @@ jobs:
7070
- python-version: '3.13'
7171
pytorch-version: 2.5.1
7272
numpy-requirement: "'numpy'"
73+
- python-version: '3.14'
74+
pytorch-version: 2.8.0
75+
numpy-requirement: "'numpy>=2.3.4'"
7376
steps:
7477
- uses: conda-incubator/setup-miniconda@v3
7578
- run: conda install -n test ffmpeg python=${{ matrix.python-version }}
76-
- uses: actions/checkout@v4
79+
- uses: actions/checkout@v5
7780
- run: echo "$CONDA/envs/test/bin" >> $GITHUB_PATH
78-
- 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
81+
- if: matrix.python-version != '3.14'
82+
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
83+
- if: matrix.python-version == '3.14'
84+
run: pip3 install .["dev"] ${{ matrix.numpy-requirement }} --extra-index-url https://pypi.org/simple
7985
- run: pytest --durations=0 -vv -k 'not test_transcribe or test_transcribe[tiny] or test_transcribe[tiny.en]' -m 'not requires_cuda'

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ dependencies = [
2626
"numba",
2727
"numpy",
2828
"tiktoken",
29-
"torch",
29+
"torch ; python_version < '3.14'", # https://github.com/pytorch/pytorch/issues/156856
3030
"tqdm",
3131
"triton>=2; (platform_machine=='x86_64' and sys_platform=='linux') or sys_platform=='linux2'",
3232
]

0 commit comments

Comments
 (0)