diff --git a/.github/workflows/pyMixtComp.yml b/.github/workflows/pyMixtComp.yml index e3a497674..3299f6185 100644 --- a/.github/workflows/pyMixtComp.yml +++ b/.github/workflows/pyMixtComp.yml @@ -28,7 +28,8 @@ 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: - 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 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