Skip to content

Commit e413564

Browse files
committed
ci: Test ABI3 wheels on other Python versions
1 parent 2f906b2 commit e413564

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

.github/workflows/build.yml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,35 @@ jobs:
7373
name: ${{ matrix.py }}-${{ matrix.platform.wheel_tag }}
7474
path: ./wheelhouse/*.whl
7575

76+
test_abi3_wheels:
77+
needs: build_wheels
78+
name: Test with Python ${{ matrix.py }} on ${{ matrix.platform.os }}
79+
runs-on: ${{ matrix.platform.os }}
80+
strategy:
81+
matrix:
82+
py: [ "3.13" ]
83+
platform:
84+
- { arch: x86_64, os: windows-latest, wheel_tag: win_amd64 }
85+
- { arch: x86_64, os: macos-13, wheel_tag: macosx_x86_64 }
86+
- { arch: arm64, os: macos-latest, wheel_tag: macosx_arm64 }
87+
- { arch: x86_64, os: ubuntu-latest, wheel_tag: manylinux_x86_64 }
88+
- { arch: aarch64, os: ubuntu-24.04-arm, wheel_tag: manylinux_aarch64 }
89+
steps:
90+
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
91+
with:
92+
path: artifacts
93+
merge-multiple: true
94+
- name: Unpack source distribution
95+
shell: bash
96+
run: tar --strip-components 1 -xvf artifacts/*.tar.gz
97+
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
98+
with:
99+
python-version: ${{ matrix.py }}
100+
- name: Install wheel and run tests
101+
run: |
102+
python -m pip install --no-index --find-links=artifacts pypcode
103+
cd tests; python -m unittest discover -v .
104+
76105
build_docs:
77106
name: Build docs
78107
runs-on: ubuntu-latest
@@ -87,7 +116,7 @@ jobs:
87116
88117
upload_pypi:
89118
name: Upload wheels to PyPI
90-
needs: [lint, build_docs, build_sdist, build_wheels]
119+
needs: [lint, build_docs, build_sdist, build_wheels, test_abi3_wheels]
91120
environment:
92121
name: pypi
93122
url: https://pypi.org/p/pypcode

0 commit comments

Comments
 (0)