Skip to content

Commit e02a462

Browse files
committed
cicd: make pre-release workflow manually triggerable
1. Make it reuse `lib-build-and-push` 2. Make it manually triggerable only This workflow is checking if driver works with next pre-release python version. We don't want to have them in PRs, if it fails it does not mean that PR is bad. It would be better to manually trigger it for now, and later we will make it check on existing pre-release versions and run on them once a month.
1 parent f2f8069 commit e02a462

File tree

1 file changed

+26
-47
lines changed

1 file changed

+26
-47
lines changed
+26-47
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,28 @@
1-
name: Build pre release python versions
2-
3-
on: [push, pull_request]
4-
5-
env:
6-
CIBW_TEST_COMMAND_LINUX: "pytest {project}/tests/unit"
7-
CIBW_BEFORE_TEST: "pip install -r {project}/test-requirements.txt"
8-
CIBW_BEFORE_BUILD_LINUX: "rm -rf ~/.pyxbld && rpm --import https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux && 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-
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28
1+
name: Test building on pre-release python version
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
python-version:
7+
description: 'Python version to run against'
8+
required: true
9+
type: string
10+
11+
target:
12+
type: string
13+
description: "target os to build for: linux,macos,windows"
14+
default: "linux,macos,windows"
15+
16+
cibw-skip:
17+
type: string
18+
description: 'CIBUILDWHEEL builds pattern to skip, goes to CIBW_SKIP env'
19+
required: false
20+
default: 'cp36* cp37* pp*i686 *musllinux*'
1321

1422
jobs:
15-
build_wheels:
16-
name: Build wheels ${{ matrix.os }} (${{ matrix.platform }})
17-
if: "(!contains(github.event.pull_request.labels.*.name, 'disable-test-build')) || github.event_name == 'push' && endsWith(github.event.ref, 'scylla')"
18-
runs-on: ${{ matrix.os }}
19-
strategy:
20-
fail-fast: false
21-
matrix:
22-
include:
23-
- os: ubuntu-20.04
24-
platform: x86_64
25-
steps:
26-
- uses: actions/checkout@v4
27-
28-
- uses: actions/setup-python@v5
29-
name: Install Python
30-
with:
31-
python-version: '3.13'
32-
33-
- name: Install cibuildwheel
34-
run: |
35-
python3 -m pip install cibuildwheel==2.22.0
36-
37-
- name: Overwrite for Linux 64
38-
if: runner.os == 'Linux' && matrix.platform == 'x86_64'
39-
run: |
40-
echo "CIBW_BUILD=cp313*_x86_64" >> $GITHUB_ENV
41-
42-
- name: Build wheels
43-
run: |
44-
python3 -m cibuildwheel --output-dir wheelhouse
45-
46-
- uses: actions/upload-artifact@v4
47-
with:
48-
name: wheels-${{ matrix.os }}-${{ matrix.platform }}
49-
path: ./wheelhouse/*.whl
23+
build-and-publish:
24+
uses: ./.github/workflows/lib-build-and-push.yml
25+
with:
26+
python-version: ${{ inputs.python-version }}
27+
target: ${{ inputs.target }}
28+
cibw-skip: ${{ inputs.cibw-skip }}

0 commit comments

Comments
 (0)