Skip to content

Commit e590b7a

Browse files
committed
CI: add pre builds for python 3.13
adding new build so we can try out the new version of python, now it's in alpha/beta
1 parent fee957a commit e590b7a

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed
+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Build pre release python versions
2+
3+
on: [push, pull_request]
4+
5+
env:
6+
CIBW_TEST_COMMAND_LINUX: "pytest --import-mode append {project}/tests/unit -k 'not (test_connection_initialization or test_cloud)' && EVENT_LOOP_MANAGER=gevent pytest --import-mode append {project}/tests/unit/io/test_geventreactor.py"
7+
CIBW_BEFORE_TEST: "pip install -r {project}/test-requirements.txt"
8+
CIBW_BEFORE_BUILD_LINUX: "rm -rf ~/.pyxbld && yum install -y libffi-devel libev libev-devel openssl openssl-devel"
9+
CIBW_ENVIRONMENT: "CASS_DRIVER_BUILD_CONCURRENCY=2 CFLAGS='-g0 -O3'"
10+
CIBW_PRERELEASE_PYTHONS: True
11+
CIBW_SKIP: cp35* cp36* *musllinux*
12+
13+
jobs:
14+
build_wheels:
15+
name: Build wheels ${{ matrix.os }} (${{ matrix.platform }})
16+
if: "(!contains(github.event.pull_request.labels.*.name, 'disable-test-build')) || github.event_name == 'push' && endsWith(github.event.ref, 'scylla')"
17+
runs-on: ${{ matrix.os }}
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
include:
22+
- os: ubuntu-latest
23+
platform: x86_64
24+
steps:
25+
- uses: actions/checkout@v4
26+
27+
- uses: actions/setup-python@v5
28+
name: Install Python
29+
30+
- name: Install cibuildwheel
31+
run: |
32+
python3 -m pip install cibuildwheel==2.19.1
33+
34+
- name: Overwrite for Linux 64
35+
if: runner.os == 'Linux' && matrix.platform == 'x86_64'
36+
run: |
37+
echo "CIBW_BUILD=cp313*_x86_64" >> $GITHUB_ENV
38+
39+
- name: Build wheels
40+
run: |
41+
python3 -m cibuildwheel --output-dir wheelhouse
42+
43+
- uses: actions/upload-artifact@v4
44+
with:
45+
name: wheels-${{ matrix.os }}-${{ matrix.platform }}
46+
path: ./wheelhouse/*.whl

0 commit comments

Comments
 (0)