Skip to content
Merged
Show file tree
Hide file tree
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
29 changes: 28 additions & 1 deletion .github/workflows/ci-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Python CI
on: pull_request

jobs:
python-build:
python-build-fedora:
name: Python Build
runs-on: ubuntu-latest
container: fedora:latest
Expand All @@ -25,3 +25,30 @@ jobs:
pushd libcomps/src/python/tests/
pytest --verbose --color=yes ./
popd

python-build-centos:
name: Python Build
runs-on: ubuntu-latest
strategy:
matrix:
container: ["quay.io/centos/centos:stream9","quay.io/centos/centos:stream10"]
container:
image: ${{ matrix.container }}
steps:
- uses: actions/checkout@v4

- name: Install dependencies
run: |
dnf -y install dnf-plugins-core python3-pip && dnf config-manager --set-enabled crb
dnf -y builddep libcomps.spec
pip install --upgrade pip
pip install pytest

- name: Compile and Install
run: pip install --user .

- name: Test
run: |
pushd libcomps/src/python/tests/
pytest --verbose --color=yes ./
popd
6 changes: 4 additions & 2 deletions libcomps/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
cmake_minimum_required (VERSION 3.10)
project(libcomps C)

cmake_policy(SET CMP0148 OLD)
if("${CMAKE_VERSION}" VERSION_GREATER_EQUAL "3.27")
cmake_policy(SET CMP0148 OLD)
endif()
if ("${CMAKE_VERSION}" VERSION_GREATER_EQUAL "3.31")
cmake_policy(SET CMP0175 NEW)
cmake_policy(SET CMP0175 NEW)
endif()

include (GNUInstallDirs)
Expand Down