1515# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1616version : 2.1
1717
18- orbs :
19- python : circleci/python@0.3.2
2018
2119jobs :
2220 python_test :
2321 parameters :
2422 python_ver :
2523 type : string
26- default : " 3.6 "
24+ default : " 3.10 "
2725 docker :
28- - image : circleci /python:<< parameters.python_ver >>
26+ - image : cimg /python:<< parameters.python_ver >>
2927 steps :
3028 - checkout
31- - python/load-cache :
32- dependency-file : requirements_dev.txt
33- key : depsv3-{{ .Branch }}.{{ arch }}-PY<< parameters.python_ver >>
3429 - run :
3530 name : Deps
3631 command : |
3732 sudo apt-get update
3833 sudo apt-get install cmake openssh-server
3934 pip install -r requirements_dev.txt
40- - python/save-cache :
41- dependency-file : requirements_dev.txt
42- key : depsv3-{{ .Branch }}.{{ arch }}-PY<< parameters.python_ver >>
4335 - run :
4436 command : |
37+ pip uninstall -y cython
4538 python setup.py build_ext --inplace
4639 eval "$(ssh-agent -s)"
4740 name : Build
@@ -50,20 +43,32 @@ jobs:
5043 set -x
5144 ls -lhtr ssh2/
5245 pwd
53- pytest tests
46+ python -m pytest tests
47+ name : Test
48+ - run :
49+ command : |
50+ python -m pytest ci/integration_tests
51+ name : Integration
52+ - run :
53+ command : |
5454 flake8 ssh2
55+ name : Flake
56+ - run :
57+ command : |
5558 python setup.py sdist
5659 cd dist; pip install *; python -c 'from ssh2.session import Session; Session()'; cd ..
60+ name : Sdist Install
61+ - run :
62+ command : |
5763 cd doc
5864 make html
5965 cd ..
60- name : Test
66+ name : Docs
6167
6268 osx :
6369 parameters :
6470 xcode_ver :
6571 type : string
66- default : " 11.6.0"
6772 macos :
6873 xcode : << parameters.xcode_ver >>
6974 environment :
7580 name : deps
7681 command : |
7782 brew install cmake git-lfs python libssh2
83+ brew link --force openssl
84+ brew link --force libssh2
7885 pip3 install twine
7986 which twine
8087 - run :
9097
9198 manylinux-x86_64 :
9299 machine :
93- image : ubuntu-2004:202201-02
100+ image : ubuntu-2004:current
94101 steps : &manylinux-steps
95102 - checkout
96- - python/load-cache :
97- key : manylinuxdepsv6-{{ .Branch }}.{{ arch }}
98- dependency-file : requirements_dev.txt
99103 - run :
100104 name : Git LFS
101105 command : |
@@ -110,11 +114,7 @@ jobs:
110114 pip install -U pip
111115 pip install twine
112116 which twine
113- which python
114117 which python3
115- - python/save-cache :
116- key : manylinuxdepsv6-{{ .Branch }}.{{ arch }}
117- dependency-file : requirements_dev.txt
118118 - run :
119119 name : Build Wheels
120120 command : |
@@ -134,22 +134,22 @@ jobs:
134134
135135 manylinux2014-aarch64 :
136136 machine :
137- image : ubuntu-2004:202101-01
137+ image : ubuntu-2004:current
138138 resource_class : arm.medium
139139 steps : *manylinux-steps
140140
141141workflows :
142- version : 2.1
142+ version : 2
143143 main :
144144 jobs :
145145 - python_test :
146146 matrix :
147147 parameters :
148148 python_ver :
149- - " 3.6"
150149 - " 3.8"
151- - " 3.9"
152150 - " 3.10"
151+ - " 3.11"
152+ - " 3.12"
153153 filters :
154154 tags :
155155 ignore : /.*/
@@ -166,7 +166,8 @@ workflows:
166166 parameters :
167167 xcode_ver :
168168 - " 14.0.0"
169- - " 13.1.0"
169+ - " 15.0.0"
170+ - " 16.0.0"
170171 filters :
171172 tags :
172173 only : /.*/
0 commit comments