From 27f9698106676471776babc5599a59fa1729a4d6 Mon Sep 17 00:00:00 2001 From: Chris Richardson Date: Mon, 4 May 2020 12:50:51 +0100 Subject: [PATCH] Add pytest --- .github/workflows/ccpp.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml index b98a9fa..ef27edb 100644 --- a/.github/workflows/ccpp.yml +++ b/.github/workflows/ccpp.yml @@ -10,6 +10,10 @@ jobs: steps: - uses: actions/checkout@v2 - name: Install Eigen and Pybind11 - run: sudo apt update && sudo apt install -y libeigen3-dev && pip3 install pybind11 + run: sudo apt update && sudo apt install -y libeigen3-dev && pip3 install pybind11 pytest - name: Compile - run: export CPATH=/usr/include/eigen3 && cd python && source build.sh \ No newline at end of file + run: export CPATH=/usr/include/eigen3 && cd python && source build.sh + - name: Test + run: | + cd python + python3 -m pytest -s -v test.py \ No newline at end of file