Skip to content

Commit

Permalink
[Test] Pin maximum python version in CI to <3.11.1 (Qiskit#9296)
Browse files Browse the repository at this point in the history
* pin max python version to 3.11.0

* further restrict MacOS to 3.10
  • Loading branch information
Cryoris authored Dec 19, 2022
1 parent dd7f939 commit 07e0a2f
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ parameters:
- name: "supportedPythonVersions"
displayName: "All supported versions of Python"
type: object
default: ["3.7", "3.8", "3.9", "3.10", "3.11"]
# TODO remove the explicit 3.11.0 pin and set it to 3.11. The pin is currently added
# since 3.11.1 breaks CI, see Qiskit/qiskit-terra#9291.
default: ["3.7", "3.8", "3.9", "3.10", "3.11.0"]

- name: "minimumPythonVersion"
displayName: "Minimum supported version of Python"
Expand All @@ -43,7 +45,7 @@ parameters:
- name: "maximumPythonVersion"
displayName: "Maximum supported version of Python"
type: string
default: "3.11"
default: "3.11.0"

- name: "minimumRustVersion"
displayName: "Minimum supported version of Rust"
Expand Down Expand Up @@ -109,7 +111,9 @@ stages:

- template: ".azure/test-macos.yml"
parameters:
pythonVersion: ${{ version }}
# TODO Manually setting this to exclude 3.11 completely, since 3.11.1 breaks
# (see Qiskit/qiskit-terra#9291) and 3.11.0 is not available on azure for MacOS.
pythonVersion: ["3.7", "3.8", "3.9", "3.10"]

- template: ".azure/test-windows.yml"
parameters:
Expand Down Expand Up @@ -181,7 +185,8 @@ stages:

- template: ".azure/test-macos.yml"
parameters:
pythonVersion: ${{ parameters.maximumPythonVersion }}
# TODO remove pin to 3.10 and reset to ${{ parameters.maximumPythonVersion }}
pythonVersion: "3.10"

- template: ".azure/test-windows.yml"
parameters:
Expand Down

0 comments on commit 07e0a2f

Please sign in to comment.