File tree Expand file tree Collapse file tree 1 file changed +32
-5
lines changed Expand file tree Collapse file tree 1 file changed +32
-5
lines changed Original file line number Diff line number Diff line change @@ -117,8 +117,8 @@ jobs:
117
117
echo "Uploading to test.pypi.org"
118
118
./venv/bin/twine upload --repository-url https://test.pypi.org/legacy/ workspace/dist/*`cat workspace/version.txt`*
119
119
120
- install_test_pypi :
121
- # Try to install from test-pip
120
+ install_from_test_pypi :
121
+ # Try to install from test-pypi
122
122
docker :
123
123
- image : circleci/python:3.6
124
124
@@ -140,6 +140,29 @@ jobs:
140
140
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple flask-log-request-id==`cat workspace/version.txt`
141
141
pip freeze | grep -i flask-log-request-id
142
142
143
+ install_from_pypi :
144
+ # Try to install from public pypi
145
+ docker :
146
+ - image : circleci/python:3.6
147
+
148
+ steps :
149
+ - attach_workspace :
150
+ at : workspace
151
+
152
+ - run :
153
+ name : Create virtual-environment
154
+ command : |
155
+ python3 -m venv venv
156
+ . venv/bin/activate
157
+
158
+ - run :
159
+ name : Install from pip
160
+ # Try to install the same version from PyPI
161
+ command : |
162
+ . venv/bin/activate
163
+ pip install flask-log-request-id==`cat workspace/version.txt`
164
+ pip freeze | grep -i flask-log-request-id
165
+
143
166
workflows :
144
167
version : 2
145
168
test_build_deploy :
@@ -158,11 +181,11 @@ workflows:
158
181
- staging
159
182
requires :
160
183
- build
161
- - install_test_pypi :
184
+
185
+ - install_from_test_pypi :
162
186
requires :
163
187
- deploy_test_pypi
164
188
165
-
166
189
- request_permission_for_public_pypi :
167
190
type : approval
168
191
requires :
@@ -176,4 +199,8 @@ workflows:
176
199
177
200
- deploy_pypi :
178
201
requires :
179
- - request_permission_for_public_pypi
202
+ - request_permission_for_public_pypi
203
+
204
+ - install_from_pypi :
205
+ requires :
206
+ - deploy_pypi
You can’t perform that action at this time.
0 commit comments