From e590b7a8ad39dae61245115ff633c156a13124f6 Mon Sep 17 00:00:00 2001 From: Israel Fruchter Date: Thu, 20 Jun 2024 10:46:10 +0300 Subject: [PATCH] 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 --- .github/workflows/build-pre-release.yml | 46 +++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/build-pre-release.yml diff --git a/.github/workflows/build-pre-release.yml b/.github/workflows/build-pre-release.yml new file mode 100644 index 0000000000..659bf6c2af --- /dev/null +++ b/.github/workflows/build-pre-release.yml @@ -0,0 +1,46 @@ +name: Build pre release python versions + +on: [push, pull_request] + +env: + 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" + CIBW_BEFORE_TEST: "pip install -r {project}/test-requirements.txt" + CIBW_BEFORE_BUILD_LINUX: "rm -rf ~/.pyxbld && yum install -y libffi-devel libev libev-devel openssl openssl-devel" + CIBW_ENVIRONMENT: "CASS_DRIVER_BUILD_CONCURRENCY=2 CFLAGS='-g0 -O3'" + CIBW_PRERELEASE_PYTHONS: True + CIBW_SKIP: cp35* cp36* *musllinux* + +jobs: + build_wheels: + name: Build wheels ${{ matrix.os }} (${{ matrix.platform }}) + if: "(!contains(github.event.pull_request.labels.*.name, 'disable-test-build')) || github.event_name == 'push' && endsWith(github.event.ref, 'scylla')" + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + include: + - os: ubuntu-latest + platform: x86_64 + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + name: Install Python + + - name: Install cibuildwheel + run: | + python3 -m pip install cibuildwheel==2.19.1 + + - name: Overwrite for Linux 64 + if: runner.os == 'Linux' && matrix.platform == 'x86_64' + run: | + echo "CIBW_BUILD=cp313*_x86_64" >> $GITHUB_ENV + + - name: Build wheels + run: | + python3 -m cibuildwheel --output-dir wheelhouse + + - uses: actions/upload-artifact@v4 + with: + name: wheels-${{ matrix.os }}-${{ matrix.platform }} + path: ./wheelhouse/*.whl \ No newline at end of file