Skip to content

Commit

Permalink
ci: Test with Python 3.13
Browse files Browse the repository at this point in the history
Note that wheels are not yet published, because Python 3.13 is not yet
ABI stable.

Signed-off-by: Matt Wozniski <[email protected]>
  • Loading branch information
godlygeek committed Jun 4, 2024
1 parent eef8e03 commit 90ea24c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
- name: Build manylinux2010 image containing Python 3.11 and 3.12
if: matrix.manylinux2010_hack
run: |
echo "CIBW_SKIP=*cp3{7,8,9,10}*" >> $GITHUB_ENV
echo "CIBW_SKIP=*cp3{7,8,9,10,13}*" >> $GITHUB_ENV
echo "CIBW_MANYLINUX_X86_64_IMAGE=manylinux2010-with-modern-cpython" >> $GITHUB_ENV
docker build -t manylinux2010-with-modern-cpython - <<'EOF'
# syntax=docker/dockerfile:1
Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_BUILD: "cp3{7..12}-${{ matrix.wheel_type }}"
CIBW_BUILD: "cp3{7..13}-${{ matrix.wheel_type }}"
CIBW_ARCHS_LINUX: auto aarch64
CIBW_PRERELEASE_PYTHONS: True
CIBW_TEST_EXTRAS: test
Expand Down Expand Up @@ -156,7 +156,7 @@ jobs:
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_BUILD: "cp3{8..12}-*"
CIBW_BUILD: "cp3{8..13}-*"
CIBW_PRERELEASE_PYTHONS: True
CIBW_TEST_EXTRAS: test
CIBW_TEST_COMMAND: pytest {package}/tests
Expand Down Expand Up @@ -196,6 +196,10 @@ jobs:
rmdir dist/{sdist,*-wheels}
rm -r dist/tests
ls -R dist
- name: Avoid publishing Python 3.13 wheels
run: |
rm -f dist/*cp313*
ls -l dist/
- uses: pypa/gh-action-pypi-publish@release/v1
with:
skip_existing: true
Expand Down
2 changes: 1 addition & 1 deletion requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Cython
coverage[toml]
greenlet; python_version < '3.12'
greenlet; python_version < '3.13'
pytest
pytest-cov
ipython
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def build_js_files(self):

test_requires = [
"Cython",
"greenlet; python_version < '3.12'",
"greenlet; python_version < '3.13'",
"pytest",
"pytest-cov",
"ipython",
Expand Down

0 comments on commit 90ea24c

Please sign in to comment.