Skip to content

Commit 8d8d1d6

Browse files
authored
Backport CI config updates to v3.9.x (matplotlib#29149)
This includes updates to `actions/attest-build-provenance`, `pypa/cibuildwheel`, `pypa/gh-action-pypi-publish`, `deadsnakes/action`, and cleanup of `workflow_dispatch` and outdated skips.
1 parent 0273ddc commit 8d8d1d6

File tree

3 files changed

+9
-13
lines changed

3 files changed

+9
-13
lines changed

.github/workflows/cibuildwheel.yml

+8-10
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,11 @@ jobs:
143143
path: dist/
144144

145145
- name: Build wheels for CPython 3.13
146-
uses: pypa/cibuildwheel@bd033a44476646b606efccdd5eed92d5ea1d77ad # v2.20.0
146+
uses: pypa/cibuildwheel@7940a4c0e76eb2030e473a5f864f291f63ee879b # v2.21.3
147147
with:
148148
package-dir: dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
149149
env:
150150
CIBW_BUILD: "cp313-* cp313t-*"
151-
# No free-threading wheels for NumPy; musllinux skipped for main builds also.
152-
CIBW_SKIP: "cp313t-win_amd64 *-musllinux_aarch64"
153151
CIBW_BUILD_FRONTEND:
154152
"pip; args: --pre --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple"
155153
CIBW_FREE_THREADED_SUPPORT: true
@@ -163,39 +161,39 @@ jobs:
163161
CIBW_ARCHS: ${{ matrix.cibw_archs }}
164162

165163
- name: Build wheels for CPython 3.12
166-
uses: pypa/cibuildwheel@bd033a44476646b606efccdd5eed92d5ea1d77ad # v2.20.0
164+
uses: pypa/cibuildwheel@7940a4c0e76eb2030e473a5f864f291f63ee879b # v2.21.3
167165
with:
168166
package-dir: dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
169167
env:
170168
CIBW_BUILD: "cp312-*"
171169
CIBW_ARCHS: ${{ matrix.cibw_archs }}
172170

173171
- name: Build wheels for CPython 3.11
174-
uses: pypa/cibuildwheel@bd033a44476646b606efccdd5eed92d5ea1d77ad # v2.20.0
172+
uses: pypa/cibuildwheel@7940a4c0e76eb2030e473a5f864f291f63ee879b # v2.21.3
175173
with:
176174
package-dir: dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
177175
env:
178176
CIBW_BUILD: "cp311-*"
179177
CIBW_ARCHS: ${{ matrix.cibw_archs }}
180178

181179
- name: Build wheels for CPython 3.10
182-
uses: pypa/cibuildwheel@bd033a44476646b606efccdd5eed92d5ea1d77ad # v2.20.0
180+
uses: pypa/cibuildwheel@7940a4c0e76eb2030e473a5f864f291f63ee879b # v2.21.3
183181
with:
184182
package-dir: dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
185183
env:
186184
CIBW_BUILD: "cp310-*"
187185
CIBW_ARCHS: ${{ matrix.cibw_archs }}
188186

189187
- name: Build wheels for CPython 3.9
190-
uses: pypa/cibuildwheel@7e5a838a63ac8128d71ab2dfd99e4634dd1bca09 # v2.19.2
188+
uses: pypa/cibuildwheel@7940a4c0e76eb2030e473a5f864f291f63ee879b # v2.21.3
191189
with:
192190
package-dir: dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
193191
env:
194192
CIBW_BUILD: "cp39-*"
195193
CIBW_ARCHS: ${{ matrix.cibw_archs }}
196194

197195
- name: Build wheels for PyPy
198-
uses: pypa/cibuildwheel@bd033a44476646b606efccdd5eed92d5ea1d77ad # v2.20.0
196+
uses: pypa/cibuildwheel@7940a4c0e76eb2030e473a5f864f291f63ee879b # v2.21.3
199197
with:
200198
package-dir: dist/${{ needs.build_sdist.outputs.SDIST_NAME }}
201199
env:
@@ -231,9 +229,9 @@ jobs:
231229
run: ls dist
232230

233231
- name: Generate artifact attestation for sdist and wheel
234-
uses: actions/attest-build-provenance@210c1913531870065f03ce1f9440dd87bc0938cd # v1.4.0
232+
uses: actions/attest-build-provenance@ef244123eb79f2f7a7e75d99086184180e6d0018 # v1.4.4
235233
with:
236234
subject-path: dist/matplotlib-*
237235

238236
- name: Publish package distributions to PyPI
239-
uses: pypa/gh-action-pypi-publish@ec4db0b4ddc65acdf4bff5fa45ac92d78b56bdf0 # v1.9.0
237+
uses: pypa/gh-action-pypi-publish@15c56dba361d8335944d31a2ecd17d700fc7bcbc # v1.12.2

.github/workflows/cygwin.yml

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ on:
2929
# 5:47 UTC on Saturdays
3030
- cron: "47 5 * * 6"
3131
workflow_dispatch:
32-
workflow: "*"
3332

3433
permissions:
3534
contents: read

.github/workflows/tests.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ on:
2121
# 5:47 UTC on Saturdays
2222
- cron: "47 5 * * 6"
2323
workflow_dispatch:
24-
workflow: "*"
2524

2625
env:
2726
NO_AT_BRIDGE: 1 # Necessary for GTK3 interactive test.
@@ -127,7 +126,7 @@ jobs:
127126
allow-prereleases: true
128127

129128
- name: Set up Python ${{ matrix.python-version }}
130-
uses: deadsnakes/action@6c8b9b82fe0b4344f4b98f2775fcc395df45e494 # v3.1.0
129+
uses: deadsnakes/action@e640ac8743173a67cca4d7d77cd837e514bf98e8 # v3.2.0
131130
if: matrix.python-version == '3.13t'
132131
with:
133132
python-version: '3.13'

0 commit comments

Comments
 (0)