Skip to content

Commit

Permalink
Run tests on py311
Browse files Browse the repository at this point in the history
  • Loading branch information
randomir committed Dec 23, 2022
1 parent 99eea5c commit 48f107d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
1 change: 1 addition & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ environment:
- PYTHON: "C:\\Python38-x64"
- PYTHON: "C:\\Python39-x64"
- PYTHON: "C:\\Python310-x64"
- PYTHON: "C:\\Python311-x64"

matrix:
fast_finish: true
Expand Down
31 changes: 25 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
type: string

docker:
- image: circleci/python:<< parameters.python-version >>
- image: cimg/python:<< parameters.python-version >>

steps:
- checkout
Expand Down Expand Up @@ -70,6 +70,16 @@ jobs:
- checkout

# install `python-version` and cache it
- when:
condition:
matches:
pattern: "^3\\.[123][123456789].*$"
value: << parameters.python-version >>
steps:
- run:
name: Update brew to get latest pyenv
command: brew update

- run: &brew-install-pyenv
name: Install pyenv
command: HOMEBREW_NO_AUTO_UPDATE=1 brew install pyenv
Expand Down Expand Up @@ -112,7 +122,7 @@ jobs:

test-docs:
docker:
- image: circleci/python:3.7
- image: cimg/python:3.7

steps:
- checkout
Expand Down Expand Up @@ -158,7 +168,7 @@ jobs:
pypi-deploy:
docker:
- image: circleci/python:3.9
- image: cimg/python:3.9

steps:
- checkout
Expand Down Expand Up @@ -188,11 +198,20 @@ workflows:
name: test-linux-<< matrix.python-version >> | << matrix.pip-constraints >>
matrix:
parameters:
python-version: &python-versions ["3.7.9", "3.8.6", "3.9.0", "3.10.0"]
python-version: &python-versions ["3.7.9", "3.8.6", "3.9.0", "3.10.0", "3.11.0"]
pip-constraints:
- "dimod==0.10.13"
- "dimod~=0.10.0 dwave-system~=1.0"
- "dimod==0.11.0 dwave-preprocessing==0.4.0 dwave-system~=1.0"
- "dimod~=0.10.0 dwave-preprocessing~=0.3.0 dwave-system~=1.0"
- "dimod~=0.11.0 dwave-preprocessing~=0.4.0 dwave-system~=1.0"
- "dimod~=0.12.0 dwave-preprocessing~=0.5.0 dwave-system~=1.0"
exclude:
# dimod < 0.12 not supported on py311+
- python-version: "3.11.0"
pip-constraints: "dimod==0.10.13"
- python-version: "3.11.0"
pip-constraints: "dimod~=0.10.0 dwave-preprocessing~=0.3.0 dwave-system~=1.0"
- python-version: "3.11.0"
pip-constraints: "dimod~=0.11.0 dwave-preprocessing~=0.4.0 dwave-system~=1.0"

- test-macos:
name: test-macos-<< matrix.python-version >>
Expand Down

0 comments on commit 48f107d

Please sign in to comment.