Skip to content

Commit 498127d

Browse files
Disabled torch for p.13 in dev mode and disabled the relevant test.
1 parent f83446c commit 498127d

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/build_default.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,12 @@ jobs:
6565
# Clean the build directory between builds
6666
CIBW_BEFORE_BUILD: >-
6767
rm -rf {package}/osqp_sources/build
68-
CIBW_TEST_COMMAND: "python -m pytest -s {project}/src/osqp/tests"
68+
CIBW_TEST_COMMAND: >-
69+
if [[ "${{ matrix.python-version }}" == "3.13" ]]; then
70+
python -m pytest -s {project}/src/osqp/tests --ignore={project}/src/osqp/tests/nn_test.py;
71+
else
72+
python -m pytest -s {project}/src/osqp/tests;
73+
fi
6974
CIBW_ENVIRONMENT_MACOS: CMAKE_OSX_ARCHITECTURES=${{ matrix.cibw_archs }}
7075
CIBW_BUILD_VERBOSITY: 1
7176

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ cuda = [
2828
dev = [
2929
"pre-commit",
3030
"pytest>=6",
31-
"torch",
31+
"torch; python_version < '3.13'",
3232

3333
# Exclude scipy 1.12 because the random sparse array function started returning
3434
# the transpose of the original, breaking the unit tests. This was fixed in 1.13.0.

0 commit comments

Comments
 (0)