Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: test several python version #33

Draft
wants to merge 3 commits into
base: staging
Choose a base branch
from
Draft
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
7 changes: 4 additions & 3 deletions .github/workflows/pyMixtComp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions pyMixtComp/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down