Skip to content

Commit 6fa3ff7

Browse files
committed
check 3.12
1 parent 4e25756 commit 6fa3ff7

File tree

2 files changed

+30
-24
lines changed

2 files changed

+30
-24
lines changed

.github/workflows/python312-manylinux-build.yml

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,87 +3,90 @@ name: Python 3.12 Manylinux Build and Test
33

44
on:
55
push:
6-
branches: ["main", "devel"]
6+
branches: ['main', 'devel']
77
pull_request:
8-
branches: ["main", "devel"]
9-
workflow_dispatch: # Allow manual trigger
8+
branches: ['main', 'devel']
9+
workflow_dispatch: # Allow manual trigger
1010

1111
jobs:
1212
build-and-test:
1313
name: 🐍 Python 3.12 on Manylinux 🐧
1414
runs-on: ubuntu-latest
15-
15+
1616
env:
1717
FORCE_COLOR: 1
1818
PIP_DISABLE_PIP_VERSION_CHECK: 1
1919
PIP_NO_PYTHON_VERSION_WARNING: 1
2020
PIP_NO_WARN_SCRIPT_LOCATION: 1
21-
PYTHON_VERSION: "3.12"
22-
MANYLINUX_VERSION: "2014"
23-
MANYLINUX_ARCH: "x86_64"
24-
21+
PYTHON_VERSION: '3.12'
22+
MANYLINUX_VERSION: '2014'
23+
MANYLINUX_ARCH: 'x86_64'
24+
2525
steps:
2626
- name: Checkout repository
2727
uses: actions/checkout@v4
28-
28+
2929
- name: Set up QEMU for architecture emulation
3030
uses: docker/setup-qemu-action@v3
3131
with:
3232
platforms: linux/amd64
33-
33+
3434
- name: Set up Docker Buildx
3535
uses: docker/setup-buildx-action@v3
36-
36+
3737
- name: Pull manylinux container
3838
run: |
3939
docker pull quay.io/pypa/manylinux${MANYLINUX_VERSION}_${MANYLINUX_ARCH}
40-
40+
4141
- name: Build source distribution
4242
run: |
4343
python -m pip install --upgrade pip
4444
python -m pip install build
4545
python -m build --sdist
46-
46+
4747
- name: Build wheel with manylinux
4848
run: |
49-
docker run --rm -v $(pwd):/io quay.io/pypa/manylinux${MANYLINUX_VERSION}_${MANYLINUX_ARCH} \
49+
docker run --rm -v $(pwd):/io ghcr.io/ansible/pylibssh-manylinux_2_28_x86_64:libssh-v0.9.6 \
5050
/bin/bash -c "cd /io && \
5151
/opt/python/cp312-cp312/bin/pip install -U pip wheel setuptools cython && \
52+
CFLAGS='-I\$(cat /root/.static-deps-path)/include' \
53+
LDFLAGS='-L\$(cat /root/.static-deps-path)/lib64 -L\$(cat /root/.static-deps-path)/lib' \
54+
LD_LIBRARY_PATH='\$(cat /root/.static-deps-path)/lib64:\$(cat /root/.static-deps-path)/lib:\${LD_LIBRARY_PATH}' \
5255
/opt/python/cp312-cp312/bin/pip wheel . -w wheelhouse/ && \
53-
auditwheel repair wheelhouse/*.whl --plat manylinux${MANYLINUX_VERSION}_${MANYLINUX_ARCH} -w /io/dist/"
54-
56+
auditwheel repair wheelhouse/*.whl --plat manylinux2_28_x86_64 -w /io/dist/"
57+
5558
- name: Install build dependencies on host
5659
run: |
5760
sudo apt-get update
5861
sudo apt-get install -y build-essential libssl-dev libssh-dev glibc-tools
59-
62+
6063
- name: Set up Python 3.12 for testing
6164
uses: actions/setup-python@v5
6265
with:
6366
python-version: ${{ env.PYTHON_VERSION }}
64-
67+
6568
- name: Install wheel and test dependencies
6669
run: |
6770
python -m pip install --upgrade pip
6871
python -m pip install pytest pytest-cov
6972
python -m pip install ./dist/*.whl
70-
73+
7174
- name: Run tests
7275
run: |
7376
python -m pytest -xvs
74-
77+
7578
- name: Upload artifacts
7679
uses: actions/upload-artifact@v4
7780
with:
7881
name: python-package-distributions
7982
path: |
8083
dist/
8184
wheelhouse/
82-
85+
8386
- name: Generate coverage report
8487
run: |
8588
python -m pytest --cov=./ --cov-report=xml
86-
89+
8790
- name: Upload coverage to Codecov
8891
uses: codecov/codecov-action@v4
8992
with:

.github/workflows/python313-manylinux-build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,14 @@ jobs:
4646
4747
- name: Build wheel with manylinux
4848
run: |
49-
docker run --rm -v $(pwd):/io quay.io/pypa/manylinux${MANYLINUX_VERSION}_${MANYLINUX_ARCH} \
49+
docker run --rm -v $(pwd):/io ghcr.io/ansible/pylibssh-manylinux_2_28_x86_64:libssh-v0.9.6 \
5050
/bin/bash -c "cd /io && \
5151
/opt/python/cp313-cp313/bin/pip install -U pip wheel setuptools cython && \
52+
CFLAGS='-I\$(cat /root/.static-deps-path)/include' \
53+
LDFLAGS='-L\$(cat /root/.static-deps-path)/lib64 -L\$(cat /root/.static-deps-path)/lib' \
54+
LD_LIBRARY_PATH='\$(cat /root/.static-deps-path)/lib64:\$(cat /root/.static-deps-path)/lib:\${LD_LIBRARY_PATH}' \
5255
/opt/python/cp313-cp313/bin/pip wheel . -w wheelhouse/ && \
53-
auditwheel repair wheelhouse/*.whl --plat manylinux${MANYLINUX_VERSION}_${MANYLINUX_ARCH} -w /io/dist/"
56+
auditwheel repair wheelhouse/*.whl --plat manylinux2_28_x86_64 -w /io/dist/"
5457
5558
- name: Install build dependencies on host
5659
run: |

0 commit comments

Comments
 (0)