Skip to content

Commit

Permalink
Add 3.13 to CI test matrix (#45)
Browse files Browse the repository at this point in the history
Also contains minor other tweaks, such as using build as a build frontend,
and checking built wheels for CPython>=3.12 from now on.
  • Loading branch information
nicholasjng authored Nov 9, 2024
1 parent 87ce5fd commit 757096c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/lint-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
py: ["3.8", "3.9", "3.10", "3.11", "3.12"]
py: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -47,6 +47,7 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.py }}
- run: python -m pip install build
- name: Check out nanobind example repo
uses: actions/checkout@v4
with:
Expand All @@ -56,12 +57,12 @@ jobs:

- name: Build and test nanobind_example on ${{ matrix.os }}
run: |
python -m pip wheel . -w dist
python -m build . -w
python -m pip install --find-links=dist/ nanobind_example
python -c "import nanobind_example; assert nanobind_example.add(1, 2) == 3"
working-directory: ${{ github.workspace }}/nanobind_example
- name: Check ${{ matrix.os }} CPython>=3.12 wheels for sqtable ABI violations
if: matrix.py == '3.12'
- name: Check ${{ matrix.os }} CPython>=3.12 wheels for stable ABI violations
if: matrix.py >= 3.12
run: |
python -m pip install --upgrade abi3audit
python -m abi3audit dist/*.whl --verbose
Expand Down

0 comments on commit 757096c

Please sign in to comment.