File tree Expand file tree Collapse file tree 2 files changed +49
-9
lines changed
Expand file tree Collapse file tree 2 files changed +49
-9
lines changed Original file line number Diff line number Diff line change 66 - executor : &executor
77 resource_class : small
88 executor : python/default
9- - build : &build
9+ - test : &test
1010 << : *executor
1111 steps :
1212 - checkout
@@ -46,25 +46,49 @@ jobs:
4646 poetry run mypy -p asyncio_multilock
4747 name : Type check the code
4848 py37 :
49- << : *build
49+ << : *test
5050 docker :
5151 - image : cimg/python:3.7
5252 py38 :
53- << : *build
53+ << : *test
5454 docker :
5555 - image : cimg/python:3.8
5656 py39 :
57- << : *build
57+ << : *test
5858 docker :
5959 - image : cimg/python:3.9
6060 py310 :
61- << : *build
61+ << : *test
6262 docker :
6363 - image : cimg/python:3.10
6464 py311 :
65- << : *build
65+ << : *test
6666 docker :
6767 - image : cimg/python:3.11
68+ build :
69+ << : *executor
70+ steps :
71+ - checkout
72+ - python/install-packages :
73+ pkg-manager : poetry
74+ - run :
75+ command : |
76+ poetry build
77+ name : Build package
78+ - persist_to_workspace :
79+ root : .
80+ paths :
81+ - dist
82+ publish :
83+ << : *executor
84+ steps :
85+ - checkout
86+ - attach_workspace :
87+ at : .
88+ - run :
89+ command : |
90+ poetry publish
91+ name : Publish package
6892workflows :
6993 main :
7094 jobs :
@@ -75,7 +99,7 @@ workflows:
7599 - py39
76100 - py310
77101 - py311
78- - gh/release :
102+ - build :
79103 requires :
80104 - lint
81105 - type
@@ -84,6 +108,9 @@ workflows:
84108 - py39
85109 - py310
86110 - py311
111+ - gh/release :
112+ requires :
113+ - build
87114 tag : v0.1.0
88115 title : v0.1.0
89116 context :
@@ -92,5 +119,12 @@ workflows:
92119 branches :
93120 ignore : /.*/
94121 tags :
95- only :
96- - v0.1.0
122+ only : /v.*/
123+ - publish :
124+ requires :
125+ - gh/release
126+ filters :
127+ branches :
128+ ignore : /.*/
129+ tags :
130+ only : /v.*/
Original file line number Diff line number Diff line change @@ -25,6 +25,12 @@ flake8 = "^5.0.4"
2525flake8-noqa = " ^1.2.9"
2626flake8-bugbear = " ^22.10.27"
2727
28+ [[tool .poetry .source ]]
29+ name = " test-pypi"
30+ url = " https://test.pypi.org/legacy/"
31+ default = false
32+ secondary = false
33+
2834[tool .pytest .ini_options ]
2935asyncio_mode = " auto"
3036
You can’t perform that action at this time.
0 commit comments