-
Notifications
You must be signed in to change notification settings - Fork 70
34 lines (34 loc) · 988 Bytes
/
python.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Python
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches:
- main
workflow_dispatch:
jobs:
test-python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Download build files
uses: ./.github/composite-actions/download-files
with:
download-pybind: true
- name: Configure CMake
run: >
cmake -B ${{github.workspace}}/build
-DCMAKE_C_COMPILER=gcc-10
-DCMAKE_CXX_COMPILER=g++-10
-DBOOST_ROOT=${{github.workspace}}/lib/boost
-DCMAKE_BUILD_TYPE=Release
-Dgtest_disable_pthreads=OFF
-DASAN=OFF
-DCOMPILE_PYBIND=ON
-DCOMPILE_TESTS=OFF
- name: Build
run: cmake --build ${{github.workspace}}/build --config Release
- name: Test
working-directory: ${{github.workspace}}/build/python_bindings
shell: bash
run: python testing_script.py