Skip to content

Commit 21a7a80

Browse files
committed
bazel: only test against python3.12 CI
try to use a different version version will led to the bazel test error: ```sh bazel test -c opt --test_output=errors //ortools/... //examples/... ... FAIL: //ortools/pdlp/python:pdlp_test (Exit 1) (see /home/runner/.cache/bazel/_bazel_runner/67ceb8c7c63f44f5a932a40cb5180139/execroot/_main/bazel-out/k8-opt/testlogs/ortools/pdlp/python/pdlp_test/test.log) INFO: From Testing //ortools/pdlp/python:pdlp_test: ==================== Test output for //ortools/pdlp/python:pdlp_test: Traceback (most recent call last): File "/home/runner/.cache/bazel/_bazel_runner/67ceb8c7c63f44f5a932a40cb5180139/sandbox/processwrapper-sandbox/7369/execroot/_main/bazel-out/k8-opt/bin/ortools/pdlp/python/pdlp_test.runfiles/_main/ortools/pdlp/python/pdlp_test.py", line 23, in <module> from ortools.pdlp.python import pdlp ImportError: Python version mismatch: module was compiled for Python 3.12, but the interpreter version is incompatible: 3.11.10 (main, Oct 16 2024, 04:38:48) [Clang 18.1.8 ]. ```
1 parent 8733308 commit 21a7a80

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.github/workflows/amd64_linux_bazel.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99
strategy:
1010
matrix:
1111
python: [
12-
{version: '3.10'},
13-
{version: '3.11'},
12+
#{version: '3.10'},
13+
#{version: '3.11'},
1414
{version: '3.12'},
15-
{version: '3.13'},
15+
#{version: '3.13'},
1616
]
1717
fail-fast: false
1818
name: Linux • Bazel • Python-${{ matrix.python.version }}

.github/workflows/amd64_macos_bazel.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99
strategy:
1010
matrix:
1111
python: [
12-
{version: '3.10'},
13-
{version: '3.11'},
12+
#{version: '3.10'},
13+
#{version: '3.11'},
1414
{version: '3.12'},
15-
{version: '3.13'},
15+
#{version: '3.13'},
1616
]
1717
fail-fast: false
1818
name: MacOS • Bazel • Python-${{ matrix.python.version }}

.github/workflows/arm64_macos_bazel.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99
strategy:
1010
matrix:
1111
python: [
12-
{version: '3.10'},
13-
{version: '3.11'},
12+
#{version: '3.10'},
13+
#{version: '3.11'},
1414
{version: '3.12'},
15-
{version: '3.13'},
15+
#{version: '3.13'},
1616
]
1717
fail-fast: false
1818
name: MacOS • Bazel • Python-${{ matrix.python.version }}

0 commit comments

Comments
 (0)