Skip to content

Commit ccf5634

Browse files
andifetake-cheeze
andauthored
Update build-and-test.yml (for python 3.13) (#205)
Signed-off-by: Andreas Fehlner <[email protected]> Signed-off-by: Takeshi Watanabe <[email protected]> Co-authored-by: Takeshi Watanabe <[email protected]>
1 parent 5f57765 commit ccf5634

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/build-and-test.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,24 @@ jobs:
2222
CIBW_BEFORE_BUILD_LINUX: pip install protobuf
2323
CIBW_BEFORE_BUILD_WINDOWS: python -m pip install protobuf
2424
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
2626
CIBW_TEST_REQUIRES_MACOS: pytest pytest-xdist
2727
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
2929
CIBW_TEST_COMMAND: pytest {project}/onnxoptimizer/test
3030
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"
3332
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"
3433
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"
3534
CIBW_BUILD: "${{ matrix.python }}-*"
3635
CIBW_SKIP: "*-win32 *-manylinux_i686 *-musllinux_*"
3736
name: Build whls ${{ matrix.os }}${{ matrix.python }}
3837
runs-on: ${{ matrix.os }}
3938
strategy:
39+
fail-fast: false
4040
matrix:
4141
os: [ubuntu-24.04, windows-2022, macos-15]
42-
python: ["cp39", "cp310", "cp311", "cp312"]
42+
python: ["cp39", "cp310", "cp311", "cp312", "cp313"]
4343
steps:
4444
- uses: actions/checkout@v4
4545
with:
@@ -75,7 +75,6 @@ jobs:
7575
with:
7676
path: dist/*.tar.gz
7777

78-
# TODO: Discuss release workflow
7978
release:
8079
name: Release
8180
environment:

0 commit comments

Comments
 (0)