88 parameters :
99 dimod-version :
1010 type : string
11+ networkx-version :
12+ type : string
1113 python-version :
1214 type : string
1315
@@ -30,10 +32,11 @@ jobs:
3032 pip install -r requirements.txt -r tests/requirements.txt
3133
3234 - run :
33- name : Install specified dimod version
35+ name : Install dependencies
3436 command : |
3537 . env/bin/activate
3638 pip install --upgrade 'dimod<< parameters.dimod-version >>'
39+ pip install --upgrade 'networkx<< parameters.networkx-version >>'
3740
3841 - save_cache : &save-cache-env
3942 key : v1-dependencies-{{ checksum "requirements.txt" }}-{{ checksum "tests/requirements.txt" }}-{{ .Environment.CIRCLE_JOB }}
5861 type : string
5962
6063 macos :
61- xcode : " 12 .2.0"
64+ xcode : " 13 .2.0"
6265
6366 environment :
6467 HOMEBREW_NO_AUTO_UPDATE : 1
@@ -72,27 +75,37 @@ jobs:
7275 brew install pyenv
7376
7477 - restore_cache : &restore-cache-pyenv
75- key : v1-pyenv-{{ .Environment.CIRCLE_JOB }}-xcode-12.2.0
78+ key : v1-pyenv-{{ .Environment.CIRCLE_JOB }}-xcode-13.2.0
79+
80+ - when :
81+ # see https://github.com/pyenv/pyenv/issues/1643
82+ condition :
83+ equal : [3.6.8, << parameters.python-version >>]
84+ steps :
85+ - run : pyenv install --patch 3.6.8 < <(curl -sSL https://github.com/python/cpython/commit/8ea6353.patch)
7686
7787 - run :
7888 name : Install python
7989 command : |
8090 pyenv install << parameters.python-version>> -s
8191
82- - run :
83- name : Set system python
84- command : |
85- pyenv global << parameters.python-version >>
86- echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
87-
8892 - save_cache : &save-cache-pyenv
89- key : v1-pyenv-{{ .Environment.CIRCLE_JOB }}-xcode-12 .2.0
93+ key : v1-pyenv-{{ .Environment.CIRCLE_JOB }}-xcode-13 .2.0
9094 paths :
9195 - ~/.pyenv
9296
9397 - restore_cache : *restore-cache-env
9498
95- - run : *create-venv-install-deps
99+ - run :
100+ name : Create virtualenv and install dependencies
101+ command : |
102+ eval "$(pyenv init --path)"
103+ pyenv local << parameters.python-version >>
104+ python -m venv env
105+ . env/bin/activate
106+ python --version
107+ pip install pip --upgrade
108+ pip install -r requirements.txt -r tests/requirements.txt
96109
97110 - save_cache : *save-cache-env
98111
@@ -207,8 +220,9 @@ workflows:
207220 - test-linux :
208221 matrix :
209222 parameters :
210- python-version : &python-versions [3.6.8, 3.7.9, 3.8.9, 3.9.4]
211- dimod-version : [==0.8.0, <0.9, <0.10, <0.11]
223+ python-version : &python-versions [3.6.8, 3.7.9, 3.8.9, 3.9.4, 3.10.0]
224+ dimod-version : [==0.10.8, ~=0.10.0]
225+ networkx-version : [==2.4, <3.0]
212226 - test-osx :
213227 matrix :
214228 parameters :
0 commit comments