Commit a16ecd7
committed
chore: rework release workflow to reuse the tests workflow.
High level description of changes:
* Add multiple release-test-* branch targets as a way to flex and
test the release pathway. This includes wiring test pypi in. The
test pypi pkgcore project is under my account which I'll transfer once
the PR lands and I figure out the 'how'.
* The release process now runs the full test suite. This is being done for
obvious reasons, but particularly since the previous intermixing via
`.[test,docs]` is what hid the issue at the GH level.
I'll resolve the underlying python level tests OOB.
* To support reusing the test workflow, the checkout processes now uses a
custom action that can pivot between git cloning, or using a GH artifact
(IE, the release tarball being tested).
https://github.com/ferringb/gh-actions/blob/main/get-source/action.yml
shows why an action encapsulating this was necessary.
lesser stuff:
* disable format check for releases. If we've tagged, by the time the
tag is in github we have to just accept any format violations.
* The publish code is duplicated because pypi upload doesn't support
being invoked from reusable workflows. And GH doesn't support the
yaml spec fully (no <<:*), thus just violating DRY. Moving that to
an in repo action is my intention down the line.
* I turned off 'draft' for github publishing. If we publish to PyPI,
the source has to be publically available. I also forced the github
release to be first for this reason (if it fails, no pypi release).
* Since I broke out actions, I also moved the VCS check into it. Things
like this will get centralized since we have 4 projects and copypasta for
GH is pain.
This gh-actions repo I intend as pkgcore/gh-actions, but that requires some
gentoo infra interactions which I'll do after folks double check this work.
Signed-off-by: Brian Harring <[email protected]>1 parent 475f404 commit a16ecd7
2 files changed
+120
-49
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | | - | |
| 11 | + | |
11 | 12 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | | - | |
| 20 | + | |
22 | 21 | | |
23 | 22 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 23 | + | |
| 24 | + | |
33 | 25 | | |
34 | 26 | | |
35 | 27 | | |
| |||
41 | 33 | | |
42 | 34 | | |
43 | 35 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 36 | + | |
50 | 37 | | |
51 | 38 | | |
52 | 39 | | |
| 40 | + | |
53 | 41 | | |
54 | 42 | | |
55 | 43 | | |
| |||
60 | 48 | | |
61 | 49 | | |
62 | 50 | | |
| 51 | + | |
63 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
64 | 89 | | |
65 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
66 | 94 | | |
67 | | - | |
68 | | - | |
| 95 | + | |
| 96 | + | |
69 | 97 | | |
70 | | - | |
71 | | - | |
72 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
73 | 103 | | |
74 | | - | |
75 | | - | |
76 | | - | |
| 104 | + | |
| 105 | + | |
77 | 106 | | |
78 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
79 | 126 | | |
80 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
9 | 19 | | |
10 | 20 | | |
11 | 21 | | |
| |||
32 | 42 | | |
33 | 43 | | |
34 | 44 | | |
35 | | - | |
36 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
37 | 49 | | |
38 | 50 | | |
39 | 51 | | |
| |||
77 | 89 | | |
78 | 90 | | |
79 | 91 | | |
80 | | - | |
| 92 | + | |
81 | 93 | | |
| 94 | + | |
82 | 95 | | |
83 | 96 | | |
84 | 97 | | |
85 | | - | |
| 98 | + | |
86 | 99 | | |
87 | 100 | | |
88 | 101 | | |
| |||
99 | 112 | | |
100 | 113 | | |
101 | 114 | | |
102 | | - | |
| 115 | + | |
103 | 116 | | |
104 | 117 | | |
105 | 118 | | |
| |||
112 | 125 | | |
113 | 126 | | |
114 | 127 | | |
115 | | - | |
| 128 | + | |
116 | 129 | | |
| 130 | + | |
117 | 131 | | |
118 | | - | |
119 | 132 | | |
120 | | - | |
| 133 | + | |
121 | 134 | | |
122 | 135 | | |
123 | 136 | | |
| |||
134 | 147 | | |
135 | 148 | | |
136 | 149 | | |
137 | | - | |
| 150 | + | |
138 | 151 | | |
139 | 152 | | |
140 | 153 | | |
| |||
145 | 158 | | |
146 | 159 | | |
147 | 160 | | |
| 161 | + | |
148 | 162 | | |
149 | | - | |
150 | | - | |
| 163 | + | |
| 164 | + | |
151 | 165 | | |
152 | 166 | | |
153 | 167 | | |
| |||
156 | 170 | | |
157 | 171 | | |
158 | 172 | | |
159 | | - | |
| 173 | + | |
160 | 174 | | |
| 175 | + | |
161 | 176 | | |
162 | 177 | | |
163 | 178 | | |
| |||
174 | 189 | | |
175 | 190 | | |
176 | 191 | | |
177 | | - | |
| 192 | + | |
178 | 193 | | |
179 | 194 | | |
180 | 195 | | |
| |||
0 commit comments