Skip to content

Commit a709994

Browse files
authored
Merge pull request #3 from networmix/cursor/centos-stream-9-build-9d6e
Centos stream 9 build
2 parents 092c2ce + 06c989d commit a709994

2 files changed

Lines changed: 50 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,30 @@ jobs:
6161
name: cibw-sdist
6262
path: dist/*.tar.gz
6363

64+
test_wheels_centos_stream_9:
65+
name: Test wheels (CentOS Stream 9)
66+
needs: [build_wheels]
67+
runs-on: ubuntu-latest
68+
container: quay.io/centos/centos:stream9
69+
steps:
70+
- name: Install Python
71+
run: dnf install -y python3.11 python3.11-pip
72+
73+
- uses: actions/download-artifact@v4
74+
with:
75+
pattern: cibw-wheels-ubuntu-*
76+
path: wheelhouse
77+
merge-multiple: true
78+
79+
- name: Install and test wheel
80+
run: |
81+
python3.11 -m pip install --upgrade pip
82+
python3.11 -m pip install netgraph-core --find-links wheelhouse/
83+
python3.11 -c "import netgraph_core; print('CentOS Stream 9:', netgraph_core.__version__)"
84+
6485
publish_pypi:
6586
name: Publish to PyPI
66-
needs: [build_wheels, build_sdist]
87+
needs: [build_wheels, build_sdist, test_wheels_centos_stream_9]
6788
runs-on: ubuntu-latest
6889
environment: pypi
6990
permissions:

.github/workflows/tests.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,34 @@ jobs:
2727
- name: Run CI checks (lint + C++/Python tests)
2828
run: make check-ci
2929

30+
test-centos-stream-9:
31+
name: CentOS Stream 9 (py${{ matrix.python-version }})
32+
runs-on: ubuntu-latest
33+
container: quay.io/centos/centos:stream9
34+
strategy:
35+
fail-fast: false
36+
matrix:
37+
python-version: ["3.11", "3.12"]
38+
steps:
39+
- name: Install system dependencies
40+
run: |
41+
dnf install -y \
42+
gcc gcc-c++ make cmake git \
43+
python${{ matrix.python-version }} \
44+
python${{ matrix.python-version }}-devel \
45+
python${{ matrix.python-version }}-pip \
46+
libatomic
47+
48+
- uses: actions/checkout@v4
49+
50+
- name: Install Python deps
51+
run: |
52+
python${{ matrix.python-version }} -m pip install -U pip wheel
53+
python${{ matrix.python-version }} -m pip install -e .[dev]
54+
55+
- name: Run CI checks
56+
run: PYTHON=python${{ matrix.python-version }} make check-ci
57+
3058
coverage:
3159
name: Coverage (ubuntu, py3.11)
3260
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)