3
3
version : 2.1
4
4
orbs :
5
5
slack : circleci/slack@4.4.2
6
+ python : circleci/python@2.0.3
6
7
7
8
jobs :
8
9
build_test :
21
22
apt-get -y install curl libgeos-dev
22
23
pip install --upgrade pip
23
24
pip install poetry
24
- poetry install
25
+ - python/install-packages :
26
+ pkg-manager : poetry
25
27
- run :
26
28
name : Test Imports (extras need to be guarded!)
27
29
command : | # Make sure that importing works without extras installed
@@ -105,6 +107,47 @@ jobs:
105
107
exit 1
106
108
fi
107
109
poetry publish --username=$PYPI_USERNAME --password=$PYPI_PASSWORD
110
+ test_poetry_installation :
111
+ parameters :
112
+ python_version :
113
+ type : string
114
+ docker :
115
+ - image : cimg/python:<<parameters.python_version>>
116
+ steps :
117
+ - checkout
118
+ - run :
119
+ command : |
120
+ pip install --upgrade pip
121
+ name : Upgrade pip
122
+ - python/install-packages :
123
+ pkg-manager : poetry
124
+ - run :
125
+ command : |
126
+ poetry run python -c 'import nucleus'
127
+ name : Test import nucleus
128
+ test_client_installation :
129
+ parameters :
130
+ python_version :
131
+ type : string
132
+ docker :
133
+ - image : cimg/python:<<parameters.python_version>>
134
+ steps :
135
+ - checkout
136
+ - run :
137
+ command : |
138
+ pip install --upgrade pip
139
+ name : Upgrade pip
140
+ # - python/install-packages:
141
+ # pkg-manager: poetry
142
+ - run :
143
+ command : |
144
+ poetry build
145
+ name : Test it
146
+ - run :
147
+ command : |
148
+ export FOUND_PKG=$(find ./dist -name "*.tar.gz")
149
+ pip install $FOUND_PKG
150
+ name : Test it
108
151
workflows :
109
152
nightly_build_test :
110
153
triggers :
@@ -117,6 +160,18 @@ workflows:
117
160
jobs :
118
161
- build_test :
119
162
context : Nucleus
163
+ installation_matrix :
164
+ jobs :
165
+ - test_poetry_installation :
166
+ matrix :
167
+ parameters :
168
+ python_version : ['3.6', '3.7', '3.8', '3.9'] # , '3.10'] Haven't gotten the 3.10 test to work
169
+ context : Nucleus
170
+ - test_client_installation :
171
+ matrix :
172
+ parameters :
173
+ python_version : ['3.6', '3.7', '3.8', '3.9', '3.10']
174
+ context : Nucleus
120
175
build_test_publish :
121
176
jobs :
122
177
- build_test :
0 commit comments