From fd0aabaa5a13519b659bfcaaa1cf79fcc9c4557d Mon Sep 17 00:00:00 2001 From: Quentin Grimonprez Date: Thu, 15 Dec 2022 15:06:59 +0100 Subject: [PATCH 1/3] ci: test several python version --- .github/workflows/pyMixtComp.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pyMixtComp.yml b/.github/workflows/pyMixtComp.yml index e3a497674..df0b9ac68 100644 --- a/.github/workflows/pyMixtComp.yml +++ b/.github/workflows/pyMixtComp.yml @@ -29,6 +29,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest] + python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"] steps: - name: Checkout MixtComp @@ -44,10 +45,10 @@ jobs: run: | brew install cmake boost eigen lcov brew install boost-python3 - - name: Set up Python 3.9 + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 with: - python-version: '3.9' + python-version: ${{ matrix.python-version }} - name: Install Tests dependencies run: pip install pytest flake8 - name: Install Other Python Dependencies From c858e1a079d3cb34b259512b961058dbb0c83af2 Mon Sep 17 00:00:00 2001 From: Quentin Grimonprez Date: Thu, 15 Dec 2022 15:26:27 +0100 Subject: [PATCH 2/3] ci: add ubuntu 20 --- .github/workflows/pyMixtComp.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pyMixtComp.yml b/.github/workflows/pyMixtComp.yml index df0b9ac68..3299f6185 100644 --- a/.github/workflows/pyMixtComp.yml +++ b/.github/workflows/pyMixtComp.yml @@ -28,7 +28,7 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest, macos-latest] + os: [ubuntu-latest, ubuntu-20.04, macos-latest] python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"] steps: From 57d4b8779ec3c4f87301e6787c8dce95b998209d Mon Sep 17 00:00:00 2001 From: Quentin Grimonprez Date: Thu, 15 Dec 2022 15:48:13 +0100 Subject: [PATCH 3/3] build: boost bind global placeholder --- pyMixtComp/src/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/pyMixtComp/src/CMakeLists.txt b/pyMixtComp/src/CMakeLists.txt index 138362a85..f674c88e7 100644 --- a/pyMixtComp/src/CMakeLists.txt +++ b/pyMixtComp/src/CMakeLists.txt @@ -9,6 +9,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON) # boost find_package(Boost 1.58 COMPONENTS python numpy REQUIRED) +add_definitions(-DBOOST_BIND_GLOBAL_PLACEHOLDERS) include_directories(${Boost_INCLUDE_DIRS}) # python