Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 12 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: CI
on:
push:
branches:
- "releases/tri/0.10.5"
- "releases/tri/0.10.5.x"
pull_request:
branches:
- "releases/tri/0.10.5"
- "releases/tri/0.10.5.x"

jobs:
test:
Expand All @@ -15,10 +15,10 @@ jobs:
fail-fast: false
matrix:
include:
- python-tag: py311
python-version: "3.11"
- python-tag: py312
python-version: "3.12"
- python-version: "3.11"
cibw-build: cp311-manylinux_x86_64
- python-version: "3.12"
cibw-build: cp312-manylinux_x86_64

name: Test (Python ${{ matrix.python-version }})

Expand All @@ -33,16 +33,18 @@ jobs:
# Build a manylinux wheel using cibuildwheel inside Docker. This handles
# the full from-source build of the cyclonedds C library so the runner
# does not need it installed system-wide. The resulting wheel bundles
# libddsc and can be installed like any normal Python package.
# libddsc and can be installed like any normal Python package. The build
# configuration lives in the [tool.cibuildwheel] section of pyproject.toml.
- name: Build wheel
if: steps.cache-wheel.outputs.cache-hit != 'true'
run: bash wheelhouse/build_cyclonedds_wheel.sh ${{ matrix.python-tag }} wheelhouse/
run: |
python3 -m pip install --upgrade cibuildwheel
cibuildwheel --output-dir dist --only ${{ matrix.cibw-build }}

- name: Set up venv and install dependencies
run: |
python3 -m venv .venv
.venv/bin/pip install --quiet --upgrade pip
.venv/bin/pip install --quiet wheelhouse/cyclonedds-*.whl
.venv/bin/pip install --quiet dist/*.whl
.venv/bin/pip install --quiet -r requirements-dev.txt

- name: Run tests
Expand Down
Loading