diff --git a/.github/workflows/all_push.yml b/.github/workflows/all_push.yml index e37c887..b8f15dd 100644 --- a/.github/workflows/all_push.yml +++ b/.github/workflows/all_push.yml @@ -29,6 +29,10 @@ jobs: # Build your program with the given configuration run: | cmake --build ${{github.workspace}}/build --verbose --parallel + - name: Install + run: | + cmake --install ${{github.workspace}}/build + python -m pip install .[dev] - name: Test C++ env: OMP_NUM_THREADS: 2 @@ -40,6 +44,8 @@ jobs: ./${CPP_TEST_DIR}/test_pauli_op --test-case-exclude="*multistring*" ./${CPP_TEST_DIR}/test_pauli_string ./${CPP_TEST_DIR}/test_summed_pauli_op + - name: Test Python + run: make test-py # - name: Test Python # run: PYTHONPATH=build:$PYTHONPATH pytest -v test diff --git a/Makefile b/Makefile index 7ca344b..f1560f5 100644 --- a/Makefile +++ b/Makefile @@ -9,11 +9,15 @@ build: python -m pip install ".[dev]" python -m build . -.PHONY: tests -tests: +test-cpp: ctest --test-dir build - python -m pytest fast_pauli/py/tests - python -m pytest tests + +test-py: + python -m pytest -v fast_pauli/py/tests + python -m pytest -v tests + +.PHONY: test +test: test-cpp test-py .PHONY: clean clean: