Increase the number of parallel CI jobs #64
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CMake | |
on: | |
push: | |
branches: ["master"] | |
pull_request: | |
branches: ["master"] | |
env: | |
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | |
BUILD_TYPE: Release | |
jobs: | |
macosPython: | |
runs-on: macOS-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Python NumPy and Pybind11 | |
run: pip3 install tox | |
- name: Python initial test | |
working-directory: ${{github.workspace}} | |
run: tox run | |
ubuntu_Python_wo_GTest_Boost: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Python NumPy and Pybind11 | |
run: sudo pip3 install tox | |
- name: Python initial test | |
working-directory: ${{github.workspace}} | |
run: tox run | |
build_wo_GTest_Boost: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
# without GTest and Boost | |
- name: Install Python NumPy and Pybind11 | |
run: sudo apt install python3-numpy python3-all-dev python3-pybind11 python3-distutils | |
- name: Configure CMake | |
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} | |
- name: Test | |
working-directory: ${{github.workspace}}/build | |
run: ctest -C ${{env.BUILD_TYPE}} --output-on-failure | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
################################################################## | |
# Do just the same but now with Google Test lib for C++ part | |
################################################################## | |
- name: Install Python NumPy and Pybind11 | |
# run: sudo apt install python3-numpy python3-all-dev python-numpy-dev python3-pybind11 python3-distutils && sudo pip3 install tox | |
run: sudo apt install python3-numpy python3-all-dev python3-pybind11 python3-distutils && sudo pip3 install tox | |
- name: install Google Test | |
run: sudo apt install libgtest-dev | |
- name: Configure CMake | |
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} | |
- name: Test | |
working-directory: ${{github.workspace}}/build | |
run: ctest -C ${{env.BUILD_TYPE}} --output-on-failure | |
################################################################## | |
# Do just the same but now with Boost multiprecision | |
################################################################## | |
- name: install Boost (to use multiprecision) | |
run: sudo apt install libboost-all-dev | |
- name: Configure CMake | |
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} | |
- name: Test | |
working-directory: ${{github.workspace}}/build | |
run: ctest -C ${{env.BUILD_TYPE}} --output-on-failure | |
- name: Python mp test | |
working-directory: ${{github.workspace}} | |
run: tox run |