3737
3838name : " Build Python source and docs artifacts"
3939
40+ permissions : {}
41+
4042# Set from inputs for workflow_dispatch, or set defaults to test push/PR events
4143env :
4244 GIT_REMOTE : ${{ github.event.inputs.git_remote || 'python' }}
43- GIT_COMMIT : ${{ github.event.inputs.git_commit || 'f6650f9ad73359051f3e558c2431a109bc016664 ' }}
44- CPYTHON_RELEASE : ${{ github.event.inputs.cpython_release || '3.12.3 ' }}
45+ GIT_COMMIT : ${{ github.event.inputs.git_commit || '4f8bb3947cfbc20f970ff9d9531e1132a9e95396 ' }}
46+ CPYTHON_RELEASE : ${{ github.event.inputs.cpython_release || '3.13.2 ' }}
4547
4648jobs :
4749 verify-input :
48- runs-on : ubuntu-22 .04
50+ runs-on : ubuntu-24 .04
4951 outputs :
5052 # Needed because env vars are not available in the build-docs check below
5153 cpython_release : ${{ env.CPYTHON_RELEASE }}
5759 echo "cpython_release: $CPYTHON_RELEASE"
5860
5961 - name : " Checkout ${{ env.GIT_REMOTE }}/cpython"
60- uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
62+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6163 with :
64+ persist-credentials : false
6265 repository : " ${{ env.GIT_REMOTE }}/cpython"
6366 ref : " v${{ env.CPYTHON_RELEASE }}"
6467 path : " cpython"
@@ -71,24 +74,27 @@ jobs:
7174 fi
7275
7376 build-source :
74- runs-on : ubuntu-22 .04
77+ runs-on : ubuntu-24 .04
7578 needs :
7679 - verify-input
7780 steps :
7881 - name : " Checkout python/release-tools"
79- uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
82+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
83+ with :
84+ persist-credentials : false
8085
8186 - name : " Checkout ${{ env.GIT_REMOTE }}/cpython"
82- uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
87+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
8388 with :
89+ persist-credentials : false
8490 repository : " ${{ env.GIT_REMOTE }}/cpython"
8591 ref : " v${{ env.CPYTHON_RELEASE }}"
8692 path : " cpython"
8793
8894 - name : " Setup Python"
89- uses : actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1 .0
95+ uses : actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3 .0
9096 with :
91- python-version : 3.11
97+ python-version : 3.12
9298
9399 - name : " Install source dependencies"
94100 run : |
@@ -101,30 +107,31 @@ jobs:
101107 python ../release.py --export "$CPYTHON_RELEASE" --skip-docs
102108
103109 - name : " Upload the source artifacts"
104- uses : actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
110+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
105111 with :
106112 name : source
107113 path : |
108114 cpython/${{ env.CPYTHON_RELEASE }}/src
109115
110116 build-docs :
111- runs-on : ubuntu-22 .04
117+ runs-on : ubuntu-24 .04
112118 needs :
113119 - verify-input
114120
115121 # Docs aren't built for alpha or beta releases.
116122 if : (!(contains(needs.verify-input.outputs.cpython_release, 'a') || contains(needs.verify-input.outputs.cpython_release, 'b')))
117123 steps :
118124 - name : " Checkout ${{ env.GIT_REMOTE }}/cpython"
119- uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
125+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
120126 with :
127+ persist-credentials : false
121128 repository : " ${{ env.GIT_REMOTE }}/cpython"
122129 ref : " v${{ env.CPYTHON_RELEASE }}"
123130
124131 - name : " Setup Python"
125- uses : actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1 .0
132+ uses : actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3 .0
126133 with :
127- python-version : 3.11
134+ python-version : 3.12
128135
129136 - name : " Install docs dependencies"
130137 run : |
@@ -143,19 +150,19 @@ jobs:
143150 SPHINXOPTS="-j10" make dist
144151
145152 - name : " Upload the docs artifacts"
146- uses : actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
153+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
147154 with :
148155 name : docs
149156 path : |
150157 Doc/dist/
151158
152159 test-source :
153- runs-on : ubuntu-22 .04
160+ runs-on : ubuntu-24 .04
154161 needs :
155162 - build-source
156163 steps :
157164 - name : " Download the source artifacts"
158- uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
165+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
159166 with :
160167 name : source
161168
0 commit comments