File tree 3 files changed +34
-3
lines changed
3 files changed +34
-3
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ sample_html_beta: _sample_cog_html ## Generate sample HTML report for a beta rel
131
131
132
132
# #@ Kitting: making releases
133
133
134
- .PHONY : kit kit_upload test_upload kit_local download_kits check_kits tag
134
+ .PHONY : kit kit_upload test_upload kit_local build_kits download_kits check_kits tag
135
135
.PHONY : update_stable comment_on_fixes
136
136
137
137
kit : # # Make the source distribution.
@@ -152,6 +152,9 @@ kit_local:
152
152
# don't go crazy trying to figure out why our new code isn't installing.
153
153
find ~ /Library/Caches/pip/wheels -name ' coverage-*' -delete
154
154
155
+ build_kits : # # Trigger GitHub to build kits
156
+ python ci/trigger_build_kits.py nedbat/coveragepy
157
+
155
158
download_kits : # # Download the built kits from GitHub.
156
159
python ci/download_gha_artifacts.py nedbat/coveragepy
157
160
Original file line number Diff line number Diff line change
1
+ # Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
2
+ # For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt
3
+
4
+ """Trigger the GitHub action to build our kits."""
5
+
6
+ import sys
7
+
8
+ import requests
9
+
10
+ repo_owner = sys .argv [1 ]
11
+
12
+ # The GitHub URL makes no mention of which workflow to use. It's found based on
13
+ # the event_type, which matches the types in the workflow:
14
+ #
15
+ # on:
16
+ # repository_dispatch:
17
+ # types:
18
+ # - build-kits
19
+ #
20
+
21
+ resp = requests .post (
22
+ f"https://api.github.com/repos/{ repo_owner } /dispatches" ,
23
+ json = {"event_type" : "build-kits" },
24
+ )
25
+ print (f"Status: { resp .status_code } " )
26
+ print (resp .text )
Original file line number Diff line number Diff line change 40
40
- ELSE:
41
41
$ make publish
42
42
- Kits:
43
- - Manually trigger the kit GitHub Action
44
- - https://github.com/nedbat/coveragepy/actions/workflows/kit.yml
43
+ - Trigger the kit GitHub Action
44
+ $ make build_kits
45
+ - wait for it to finish:
46
+ - https://github.com/nedbat/coveragepy/actions/workflows/kit.yml
45
47
- Download and check built kits from GitHub Actions:
46
48
$ make clean download_kits check_kits
47
49
- examine the dist directory, and remove anything that looks malformed.
You can’t perform that action at this time.
0 commit comments