@@ -22,24 +22,24 @@ jobs:
22
22
CIBW_BEFORE_BUILD_LINUX : pip install protobuf
23
23
CIBW_BEFORE_BUILD_WINDOWS : python -m pip install protobuf
24
24
CIBW_BEFORE_BUILD_MACOS : pip install protobuf
25
- CIBW_TEST_REQUIRES_LINUX : pytest pytest-xdist flake8 mypy onnxruntime==1.19.2
25
+ CIBW_TEST_REQUIRES_LINUX : pytest pytest-xdist flake8 mypy onnxruntime
26
26
CIBW_TEST_REQUIRES_MACOS : pytest pytest-xdist
27
27
CIBW_TEST_REQUIRES_WINDOWS : pytest pytest-xdist
28
- CIBW_BEFORE_TEST_LINUX : pip install torch==2.2 .0+cpu torchvision==0.17 .0+cpu -f https://download.pytorch.org/whl/torch_stable.html
28
+ CIBW_BEFORE_TEST_LINUX : pip install torch==2.6 .0+cpu torchvision==0.21 .0+cpu --index-url https://download.pytorch.org/whl/cpu
29
29
CIBW_TEST_COMMAND : pytest {project}/onnxoptimizer/test
30
30
CIBW_TEST_COMMAND_LINUX : cd {project} && flake8 && pytest
31
- # Python3.11 doesn't have torchvision prebuilt wheel
32
- CIBW_TEST_SKIP : " cp311-* *_arm64 *_universal2:arm64"
31
+ CIBW_TEST_SKIP : " *_arm64"
33
32
CIBW_ENVIRONMENT : CMAKE_ARGS="-DONNX_USE_PROTOBUF_SHARED_LIBS=OFF -DProtobuf_USE_STATIC_LIBS=ON -DONNX_USE_LITE_PROTO=ON -DCMAKE_POLICY_VERSION_MINIMUM=3.5"
34
33
CIBW_ENVIRONMENT_WINDOWS : USE_MSVC_STATIC_RUNTIME=0 CMAKE_ARGS="-DONNX_USE_PROTOBUF_SHARED_LIBS=OFF -DProtobuf_USE_STATIC_LIBS=ON -DONNX_USE_LITE_PROTO=ON"
35
34
CIBW_BUILD : " ${{ matrix.python }}-*"
36
35
CIBW_SKIP : " *-win32 *-manylinux_i686 *-musllinux_*"
37
36
name : Build whls ${{ matrix.os }}${{ matrix.python }}
38
37
runs-on : ${{ matrix.os }}
39
38
strategy :
39
+ fail-fast : false
40
40
matrix :
41
41
os : [ubuntu-24.04, windows-2022, macos-15]
42
- python : ["cp39", "cp310", "cp311", "cp312"]
42
+ python : ["cp39", "cp310", "cp311", "cp312", "cp313" ]
43
43
steps :
44
44
- uses : actions/checkout@v4
45
45
with :
75
75
with :
76
76
path : dist/*.tar.gz
77
77
78
- # TODO: Discuss release workflow
79
78
release :
80
79
name : Release
81
80
environment :
0 commit comments