1111on :
1212 # TODO cron job? scipy does this
1313 # Save CI by only running this on release branches or tags.
14- push : # FOR TESTING ONLY
14+ push : # FOR TESTING ONLY
1515 branches :
1616 - main
1717 - v[0-9]+.[0-9]+.x
1818 tags :
1919 - v*
20- # Also allow running this action on PRs if requested by applying the
21- # "Run cibuildwheel" label.
2220 pull_request :
2321 branches :
2422 - main
@@ -48,12 +46,12 @@ jobs:
4846
4947 steps :
5048 - name : Checkout matplotlib-release
51- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 .0.0
49+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 .0.2
5250 with :
5351 persist-credentials : false
5452
5553 - name : Checkout matplotlib
56- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 .0.0
54+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 .0.2
5755 with :
5856 repository : matplotlib/matplotlib
5957 ref : ${{ env.SOURCE_REF_TO_BUILD }}
@@ -62,12 +60,11 @@ jobs:
6260 persist-credentials : false
6361 fetch-depth : 0
6462
65- - uses : actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0 .0
63+ - uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2 .0
6664 name : Install Python
6765 with :
6866 python-version : ' 3.11'
6967
70-
7168 - name : Install dependencies
7269 run : python -m pip install build twine
7370
8279 run : twine check mpl-src/dist/*
8380
8481 - name : Upload sdist result
85- uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5 .0.0
82+ uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 .0.1
8683 with :
8784 name : cibw-sdist
8885 path : mpl-src/dist/*.tar.gz
@@ -95,24 +92,24 @@ jobs:
9592
9693 steps :
9794 - name : Checkout matplotlib-release
98- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 .0.0
95+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 .0.2
9996 with :
10097 persist-credentials : false
10198
10299 - name : Download sdist
103- uses : actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6 .0.0
100+ uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8 .0.1
104101 with :
105- name : cibw-sdist
106- path : dist/
102+ name : cibw-sdist
103+ path : dist/
107104
108105 - name : Update LICENSE for binary distribution (append auxilliary licenses to LICENSE file)
109106 run : |
110107 tar -xvf dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
111108 cat ${{ github.workspace }}/tools/wheels/LICENSE_binary.txt >> matplotlib*/LICENSE/LICENSE
112- tar -cvf dist/${{ needs.build_sdist.outputs.SDIST_NAME }} matplotlib*
109+ tar -cvf dist/${{ needs.build_sdist.outputs.SDIST_NAME }} matplotlib*
113110
114111 - name : Upload sdist result
115- uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5 .0.0
112+ uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 .0.1
116113 with :
117114 name : sdist-license
118115 path : dist/*.tar.gz
@@ -165,13 +162,13 @@ jobs:
165162 steps :
166163
167164 - name : Download sdist
168- uses : actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6 .0.0
165+ uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8 .0.1
169166 with :
170- name : sdist-license
171- path : dist/
167+ name : sdist-license
168+ path : dist/
172169
173170 - name : Build wheels for CPython 3.14
174- uses : pypa/cibuildwheel@9c00cb4f6b517705a3794b22395aedc36257242c # v3.2 .1
171+ uses : pypa/cibuildwheel@8d2b08b68458a16aeb24b64e68a09ab1c8e82084 # v3.4 .1
175172 with :
176173 package-dir : dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
177174 env :
@@ -181,7 +178,7 @@ jobs:
181178 CIBW_MANYLINUX_X86_64_IMAGE : manylinux_2_28
182179
183180 - name : Build wheels for CPython 3.13
184- uses : pypa/cibuildwheel@9c00cb4f6b517705a3794b22395aedc36257242c # v3.2 .1
181+ uses : pypa/cibuildwheel@8d2b08b68458a16aeb24b64e68a09ab1c8e82084 # v3.4 .1
185182 with :
186183 package-dir : dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
187184 env :
@@ -190,23 +187,23 @@ jobs:
190187 CIBW_ARCHS : ${{ matrix.cibw_archs }}
191188
192189 - name : Build wheels for CPython 3.12
193- uses : pypa/cibuildwheel@9c00cb4f6b517705a3794b22395aedc36257242c # v3.2 .1
190+ uses : pypa/cibuildwheel@8d2b08b68458a16aeb24b64e68a09ab1c8e82084 # v3.4 .1
194191 with :
195192 package-dir : dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
196193 env :
197194 CIBW_BUILD : " cp312-*"
198195 CIBW_ARCHS : ${{ matrix.cibw_archs }}
199196
200197 - name : Build wheels for CPython 3.11
201- uses : pypa/cibuildwheel@9c00cb4f6b517705a3794b22395aedc36257242c # v3.2 .1
198+ uses : pypa/cibuildwheel@8d2b08b68458a16aeb24b64e68a09ab1c8e82084 # v3.4 .1
202199 with :
203200 package-dir : dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
204201 env :
205202 CIBW_BUILD : " cp311-*"
206203 CIBW_ARCHS : ${{ matrix.cibw_archs }}
207204
208205 - name : Build wheels for PyPy
209- uses : pypa/cibuildwheel@9c00cb4f6b517705a3794b22395aedc36257242c # v3.2 .1
206+ uses : pypa/cibuildwheel@8d2b08b68458a16aeb24b64e68a09ab1c8e82084 # v3.4 .1
210207 with :
211208 package-dir : dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
212209 env :
@@ -215,7 +212,7 @@ jobs:
215212 CIBW_ENABLE : pypy
216213 if : matrix.cibw_archs != 'aarch64' && matrix.os != 'windows-latest' && matrix.os != 'windows-11-arm'
217214
218- - uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5 .0.0
215+ - uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 .0.1
219216 with :
220217 name : cibw-wheels-${{ runner.os }}-${{ matrix.cibw_archs }}
221218 path : ./wheelhouse/*.whl
@@ -234,21 +231,21 @@ jobs:
234231 id-token : write # mandatory for trusted publishing
235232 steps :
236233 - name : Download sdist and wheels
237- uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5 .0.0
234+ uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8 .0.1
238235 with :
239236 pattern : cibw-*
240237 path : dist
241238 merge-multiple : true
242239
243240 - name : Publish
244- uses : pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
241+ uses : pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
245242 with :
246243 repository-url : https://test.pypi.org/legacy/
247244 skip-existing : true
248245 print-hash : true
249246 attestations : true
250247
251- # -------------------------------------------------------------------------------------
248+ # -------------------------------------------------------------------------------------
252249 check_version :
253250 name : Ensure commit is tag before upload to PyPi
254251
@@ -257,7 +254,7 @@ jobs:
257254 runs-on : ubuntu-latest
258255 steps :
259256 - name : Checkout matplotlib
260- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 .0.0
257+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 .0.2
261258 with :
262259 repository : matplotlib/matplotlib
263260 ref : ${{ env.SOURCE_REF_TO_BUILD }}
@@ -279,7 +276,7 @@ jobs:
279276 echo "SOURCE_REF_TO_BUILD is a tag"
280277 fi;
281278
282- # -------------------------------------------------------------------------------------
279+ # -------------------------------------------------------------------------------------
283280 pypi-publish :
284281 name : Publish release to PyPI
285282 if : github.event_name == 'workflow_dispatch' && github.event.inputs.environment == 'pypi'
@@ -292,14 +289,14 @@ jobs:
292289 id-token : write # mandatory for trusted publishing
293290 steps :
294291 - name : Download sdist and wheels
295- uses : actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6 .0.0
292+ uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8 .0.1
296293 with :
297294 pattern : cibw-*
298295 path : dist
299296 merge-multiple : true
300297
301298 - name : Publish
302- uses : pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
299+ uses : pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
303300 with :
304301 print-hash : true
305302 attestations : true
0 commit comments