-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (50 loc) · 1.93 KB
/
Copy pathwheel-python-matrix.yml
File metadata and controls
55 lines (50 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Wheel Python matrix drift guard
# Fail any PR where the release wheel-build interpreter matrix diverges from the
# Python support pyproject.toml declares. AAASM-4446 shipped cp312-only wheels
# while pyproject claimed 3.13/3.14, so a 3.13 install silently fell back to a
# native-core-less sdist. This runs the guard on EVERY PR that touches either
# side of that contract (not only at release), so the drift is caught in review
# rather than after publish.
#
# Triggers on the inputs the guard reads plus its own script/test/workflow, so a
# change to any of them re-runs the check.
#
# Refs AAASM-4446 / AAASM-4453.
on:
push:
branches:
- main
paths:
- "pyproject.toml"
- ".github/workflows/release-python.yml"
- ".github/scripts/check-wheel-python-matrix.sh"
- ".github/scripts/test_check-wheel-python-matrix.sh"
- ".github/workflows/wheel-python-matrix.yml"
pull_request:
branches:
- main
paths:
- "pyproject.toml"
- ".github/workflows/release-python.yml"
- ".github/scripts/check-wheel-python-matrix.sh"
- ".github/scripts/test_check-wheel-python-matrix.sh"
- ".github/workflows/wheel-python-matrix.yml"
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
wheel-python-matrix:
name: Check wheel matrix matches declared Python support
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Lint guard + test scripts
run: |
shellcheck .github/scripts/check-wheel-python-matrix.sh
shellcheck -x .github/scripts/test_check-wheel-python-matrix.sh
- name: Assert wheel matrix matches pyproject Python support
run: bash .github/scripts/check-wheel-python-matrix.sh
- name: Run drift-guard fixture suite
run: bash .github/scripts/test_check-wheel-python-matrix.sh