-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (44 loc) · 1.45 KB
/
all_push.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
35
36
37
38
39
40
41
42
43
44
45
name: All push
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
compiler: [g++-12, clang++-17]
python-version: ["3.10"]
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Setup compiler
run: python3 ./.github/compiler_setup.py ${{ matrix.compiler }}
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
run: python -m pip install numpy pytest cmake
- name: Configure CMake
env:
CXX: ${{ matrix.compiler }}
run: cmake -B ${{github.workspace}}/build -DCMAKE_CXX_COMPILER=${CXX}
- name: Build
# Build your program with the given configuration
run: |
cmake --build ${{github.workspace}}/build --verbose --parallel
du build/tests/test_pauli_op
- name: Test C++
env:
OMP_NUM_THREADS: 2
run: |
# ctest --test-dir build --verbose # TODO not using bc of PauliOp problems on CI
./build/tests/test_factory
./build/tests/test_pauli
./build/tests/test_pauli_op --test-case-exclude="*multistring*"
./build/tests/test_pauli_string
./build/tests/test_summed_pauli_op
# - name: Test Python
# run: PYTHONPATH=build:$PYTHONPATH pytest -v test