Skip to content

Commit f7e176e

Browse files
committed
Add 313t tests
1 parent 618992f commit f7e176e

File tree

3 files changed

+57
-5
lines changed

3 files changed

+57
-5
lines changed

.github/workflows/_build_linux.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ jobs:
2828
set -ex
2929
uv python list --only-installed
3030
31-
python_exe="/opt/python/cp${{ inputs.python-version }}-cp${{ inputs.python-version }}/bin/python"
31+
v=${{ inputs.python-version }}
32+
# note: 3.13t is in cp313-cp313t directory
33+
python_exe="/opt/python/cp${v//[^0-9]/}-cp${v}/bin/python"
3234
uv venv --python "${python_exe}"
3335
uv build --all-packages --wheel
3436
@@ -44,7 +46,12 @@ jobs:
4446
overwrite: true
4547

4648
- name: Check package
49+
# CFFI is not available yet for 3.13t, which prevents the installation of twine
50+
# https://github.com/python-cffi/cffi/releases/tag/v1.17.0
51+
if: ${{ inputs.python-version != '313t' }}
4752
run: |
48-
python_exe="/opt/python/cp${{ inputs.python-version }}-cp${{ inputs.python-version }}/bin/python"
53+
v=${{ inputs.python-version }}
54+
# note: 3.13t is in cp313-cp313t directory
55+
python_exe="/opt/python/cp${v//[^0-9]/}-cp${v}/bin/python"
4956
"${python_exe}" -m pip install -r ./packaging/requirements.txt
5057
"${python_exe}" -m twine check --strict ~/package/*.whl

.github/workflows/_build_linux_cuda.yml

+10-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
jobs:
1818
build:
1919
runs-on: ubuntu-latest
20-
container: "pytorch/manylinux2_28-builder:cuda${{ inputs.cuda-version}}"
20+
container: "pytorch/manylinux2_28-builder:cuda${{ inputs.cuda-version }}"
2121
steps:
2222
- uses: actions/checkout@v4
2323
with:
@@ -47,7 +47,9 @@ jobs:
4747
source $HOME/.local/bin/env
4848
uv python list --only-installed
4949
50-
python_exe="/opt/python/cp${{ inputs.python-version }}-cp${{ inputs.python-version }}/bin/python"
50+
v=${{ inputs.python-version }}
51+
# note: 3.13t is in cp313-cp313t directory
52+
python_exe="/opt/python/cp${v//[^0-9]/}-cp${v}/bin/python"
5153
uv venv --python "${python_exe}"
5254
uv build --all-packages --wheel
5355
@@ -63,7 +65,12 @@ jobs:
6365
overwrite: true
6466

6567
- name: Check package
68+
# CFFI is not available yet for 3.13t, which prevents the installation of twine
69+
# https://github.com/python-cffi/cffi/releases/tag/v1.17.0
70+
if: ${{ inputs.python-version != '313t' }}
6671
run: |
67-
python_exe="/opt/python/cp${{ inputs.python-version }}-cp${{ inputs.python-version }}/bin/python"
72+
v=${{ inputs.python-version }}
73+
# note: 3.13t is in cp313-cp313t directory
74+
python_exe="/opt/python/cp${v//[^0-9]/}-cp${v}/bin/python"
6875
"${python_exe}" -m pip install -r ./packaging/requirements.txt
6976
"${python_exe}" -m twine check --strict ~/package/*.whl

.github/workflows/packaging.yml

+38
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ jobs:
2121
#############################################################################
2222
# macOS
2323
#############################################################################
24+
macos-py313t:
25+
name: "macOS 3.13t"
26+
uses: ./.github/workflows/_build_macos.yml
27+
with:
28+
python-version: "3.13t"
29+
artifact: wheel-macos-py313t
30+
2431
macos-py313:
2532
name: "macOS 3.13"
2633
uses: ./.github/workflows/_build_macos.yml
@@ -52,6 +59,14 @@ jobs:
5259
#----------------------------------------------------------------------------
5360
# Test
5461
#----------------------------------------------------------------------------
62+
macos-py313t-test:
63+
name: "macOS 3.13t"
64+
needs: [ "macos-py313t" ]
65+
uses: ./.github/workflows/_test_macos.yml
66+
with:
67+
python-version: "3.13t"
68+
artifact: wheel-macos-py313t
69+
5570
macos-py310-test:
5671
name: "macOS 3.10"
5772
needs: [ "macos-py310" ]
@@ -63,6 +78,13 @@ jobs:
6378
#############################################################################
6479
# Linux (CPU)
6580
#############################################################################
81+
linux-py313t:
82+
name: "Linux 3.13t"
83+
uses: ./.github/workflows/_build_linux.yml
84+
with:
85+
python-version: "313t"
86+
artifact: wheel-linux-py313t
87+
6688
linux-py313:
6789
name: "Linux 3.13"
6890
uses: ./.github/workflows/_build_linux.yml
@@ -94,6 +116,14 @@ jobs:
94116
#----------------------------------------------------------------------------
95117
# Test
96118
#----------------------------------------------------------------------------
119+
linux-py313t-test:
120+
name: "Linux 3.13t"
121+
needs: [ "linux-py313t" ]
122+
uses: ./.github/workflows/_test_linux.yml
123+
with:
124+
python-version: "3.13t"
125+
artifact: wheel-linux-py313t
126+
97127
linux-py310-test:
98128
name: "Linux 3.10"
99129
needs: [ "linux-py310" ]
@@ -105,6 +135,14 @@ jobs:
105135
#############################################################################
106136
# Linux (CUDA)
107137
#############################################################################
138+
linux-py313t-cuda12:
139+
name: "Linux 3.13t cu12"
140+
uses: ./.github/workflows/_build_linux_cuda.yml
141+
with:
142+
python-version: "313t"
143+
artifact: wheel-linux-py313t-cuda12
144+
cuda-version: 12.6
145+
108146
linux-py313-cuda12:
109147
name: "Linux 3.13 cu12"
110148
uses: ./.github/workflows/_build_linux_cuda.yml

0 commit comments

Comments
 (0)