@@ -8,11 +8,19 @@ workflows:
88 version : 2
99 build_test_deploy :
1010 jobs :
11- - build
11+ - build :
12+ filters :
13+ branches :
14+ ignore :
15+ - gh-pages
1216
1317 - test_integration :
1418 requires :
1519 - build
20+ filters :
21+ branches :
22+ ignore :
23+ - gh-pages
1624 matrix :
1725 parameters :
1826 python-version : ["3.6.5", "3.7.7", "3.8.6", "3.9.3", "latest"]
@@ -21,7 +29,6 @@ workflows:
2129 type : approval
2230 requires :
2331 - test_integration
24-
2532 filters :
2633 branches :
2734 only :
@@ -59,54 +66,44 @@ jobs:
5966 steps :
6067 - checkout :
6168 name : Checkout Git
62-
6369 - run :
6470 name : Build Package
6571 command : |
6672 echo -e "Running sdist"
6773 python setup.py sdist
68-
6974 - persist_to_workspace :
7075 root : /home/circleci/project/
7176 paths :
7277 - .
7378
74-
7579 test_integration :
7680 description : Python << parameters.python-version >>
7781 parameters :
7882 python-version :
7983 type : string
80-
8184 docker :
8285 - image : circleci/python:<< parameters.python-version >>
83-
8486 steps :
8587 - attach_workspace :
8688 at : /tmp/artifact
8789 name : Attach build artifact
88-
8990 - run :
9091 name : Install package
9192 command : |
9293 pip install --user '/tmp/artifact'
93-
9494 - run :
9595 name : Run integration test
9696 command : |
9797 python /tmp/artifact/tests/integration.py
9898
99-
10099 upload_test_job :
101100 description : Upload test
102101 docker :
103102 - image : circleci/python:latest
104-
105103 steps :
106104 - attach_workspace :
107105 at : /tmp/artifact
108106 name : Attach build artifact
109-
110107 - run :
111108 name : Upload to pypi
112109 command : |
@@ -127,7 +124,7 @@ jobs:
127124 # command: |
128125 # cd /tmp/artifact/docs
129126 # pip install -r requirements.txt
130-
127+
131128 # - run:
132129 # name: Build autodocs
133130 # command: |
@@ -143,25 +140,21 @@ jobs:
143140 deploy :
144141 docker :
145142 - image : circleci/python:latest
146-
147143 steps :
148144 - attach_workspace :
149145 at : /tmp/artifact
150146 name : Attach build artifact
151-
152147 - run :
153148 name : Install dependencies
154149 command : |
155150 pip install setuptools wheel twine
156-
157151 - run :
158152 name : init .pypirc
159153 command : |
160154 cd /tmp/artifact
161155 echo -e "[pypi]" >> ~/.pypirc
162156 echo -e "username = $TWINE_USERNAME" >> ~/.pypirc
163157 echo -e "password = $TWINE_PASSWORD" >> ~/.pypirc
164-
165158 - run :
166159 name : Upload to pypi
167160 command : |
0 commit comments