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,11 +60,10 @@ 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 :
68- python-version : ' 3.11'
69-
66+ python-version : ' 3.12'
7067
7168 - name : Install dependencies
7269 run : python -m pip install build twine
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,32 +187,14 @@ 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
200- - name : Build wheels for CPython 3.11
201- uses : pypa/cibuildwheel@9c00cb4f6b517705a3794b22395aedc36257242c # v3.2.1
202- with :
203- package-dir : dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
204- env :
205- CIBW_BUILD : " cp311-*"
206- CIBW_ARCHS : ${{ matrix.cibw_archs }}
207-
208- - name : Build wheels for PyPy
209- uses : pypa/cibuildwheel@9c00cb4f6b517705a3794b22395aedc36257242c # v3.2.1
210- with :
211- package-dir : dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
212- env :
213- CIBW_BUILD : " pp311-*"
214- CIBW_ARCHS : ${{ matrix.cibw_archs }}
215- CIBW_ENABLE : pypy
216- if : matrix.cibw_archs != 'aarch64' && matrix.os != 'windows-latest' && matrix.os != 'windows-11-arm'
217-
218- - uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
197+ - uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
219198 with :
220199 name : cibw-wheels-${{ runner.os }}-${{ matrix.cibw_archs }}
221200 path : ./wheelhouse/*.whl
@@ -234,21 +213,21 @@ jobs:
234213 id-token : write # mandatory for trusted publishing
235214 steps :
236215 - name : Download sdist and wheels
237- uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5 .0.0
216+ uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8 .0.1
238217 with :
239218 pattern : cibw-*
240219 path : dist
241220 merge-multiple : true
242221
243222 - name : Publish
244- uses : pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
223+ uses : pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
245224 with :
246225 repository-url : https://test.pypi.org/legacy/
247226 skip-existing : true
248227 print-hash : true
249228 attestations : true
250229
251- # -------------------------------------------------------------------------------------
230+ # -------------------------------------------------------------------------------------
252231 check_version :
253232 name : Ensure commit is tag before upload to PyPi
254233
@@ -257,7 +236,7 @@ jobs:
257236 runs-on : ubuntu-latest
258237 steps :
259238 - name : Checkout matplotlib
260- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 .0.0
239+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 .0.2
261240 with :
262241 repository : matplotlib/matplotlib
263242 ref : ${{ env.SOURCE_REF_TO_BUILD }}
@@ -279,7 +258,7 @@ jobs:
279258 echo "SOURCE_REF_TO_BUILD is a tag"
280259 fi;
281260
282- # -------------------------------------------------------------------------------------
261+ # -------------------------------------------------------------------------------------
283262 pypi-publish :
284263 name : Publish release to PyPI
285264 if : github.event_name == 'workflow_dispatch' && github.event.inputs.environment == 'pypi'
@@ -292,14 +271,14 @@ jobs:
292271 id-token : write # mandatory for trusted publishing
293272 steps :
294273 - name : Download sdist and wheels
295- uses : actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6 .0.0
274+ uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8 .0.1
296275 with :
297276 pattern : cibw-*
298277 path : dist
299278 merge-multiple : true
300279
301280 - name : Publish
302- uses : pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
281+ uses : pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
303282 with :
304283 print-hash : true
305284 attestations : true
0 commit comments