@@ -8,11 +8,19 @@ workflows:
8
8
version : 2
9
9
build_test_deploy :
10
10
jobs :
11
- - build
11
+ - build :
12
+ filters :
13
+ branches :
14
+ ignore :
15
+ - gh-pages
12
16
13
17
- test_integration :
14
18
requires :
15
19
- build
20
+ filters :
21
+ branches :
22
+ ignore :
23
+ - gh-pages
16
24
matrix :
17
25
parameters :
18
26
python-version : ["3.6.5", "3.7.7", "3.8.6", "3.9.3", "latest"]
@@ -21,7 +29,6 @@ workflows:
21
29
type : approval
22
30
requires :
23
31
- test_integration
24
-
25
32
filters :
26
33
branches :
27
34
only :
@@ -59,54 +66,44 @@ jobs:
59
66
steps :
60
67
- checkout :
61
68
name : Checkout Git
62
-
63
69
- run :
64
70
name : Build Package
65
71
command : |
66
72
echo -e "Running sdist"
67
73
python setup.py sdist
68
-
69
74
- persist_to_workspace :
70
75
root : /home/circleci/project/
71
76
paths :
72
77
- .
73
78
74
-
75
79
test_integration :
76
80
description : Python << parameters.python-version >>
77
81
parameters :
78
82
python-version :
79
83
type : string
80
-
81
84
docker :
82
85
- image : circleci/python:<< parameters.python-version >>
83
-
84
86
steps :
85
87
- attach_workspace :
86
88
at : /tmp/artifact
87
89
name : Attach build artifact
88
-
89
90
- run :
90
91
name : Install package
91
92
command : |
92
93
pip install --user '/tmp/artifact'
93
-
94
94
- run :
95
95
name : Run integration test
96
96
command : |
97
97
python /tmp/artifact/tests/integration.py
98
98
99
-
100
99
upload_test_job :
101
100
description : Upload test
102
101
docker :
103
102
- image : circleci/python:latest
104
-
105
103
steps :
106
104
- attach_workspace :
107
105
at : /tmp/artifact
108
106
name : Attach build artifact
109
-
110
107
- run :
111
108
name : Upload to pypi
112
109
command : |
@@ -127,7 +124,7 @@ jobs:
127
124
# command: |
128
125
# cd /tmp/artifact/docs
129
126
# pip install -r requirements.txt
130
-
127
+
131
128
# - run:
132
129
# name: Build autodocs
133
130
# command: |
@@ -143,25 +140,21 @@ jobs:
143
140
deploy :
144
141
docker :
145
142
- image : circleci/python:latest
146
-
147
143
steps :
148
144
- attach_workspace :
149
145
at : /tmp/artifact
150
146
name : Attach build artifact
151
-
152
147
- run :
153
148
name : Install dependencies
154
149
command : |
155
150
pip install setuptools wheel twine
156
-
157
151
- run :
158
152
name : init .pypirc
159
153
command : |
160
154
cd /tmp/artifact
161
155
echo -e "[pypi]" >> ~/.pypirc
162
156
echo -e "username = $TWINE_USERNAME" >> ~/.pypirc
163
157
echo -e "password = $TWINE_PASSWORD" >> ~/.pypirc
164
-
165
158
- run :
166
159
name : Upload to pypi
167
160
command : |
0 commit comments