From de443ff30b0365e7b4ffaf15c82f4248a62e40f4 Mon Sep 17 00:00:00 2001 From: q-posev Date: Wed, 4 May 2022 15:14:16 +0200 Subject: [PATCH] Add CI for Python API --- .github/workflows/test-build.yml | 15 +++++++++++++++ python/_version.py | 1 - 2 files changed, 15 insertions(+), 1 deletion(-) delete mode 100644 python/_version.py diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index c7af73f..c4ea4aa 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -60,6 +60,21 @@ jobs: run: make distcheck working-directory: _build + - name: Setup the virtual environment + run: | + python3 -m venv --clear pyqmckl + source pyqmckl/bin/activate + + - name: Install the Python requirements + run: pip install -r requirements.txt + working-directory: python + + - name: Install the Python API + run: make python-install + + - name: Test the Python API + run: make python-test + x86_macos: runs-on: macos-latest diff --git a/python/_version.py b/python/_version.py deleted file mode 100644 index d3ec452..0000000 --- a/python/_version.py +++ /dev/null @@ -1 +0,0 @@ -__version__ = "0.2.0"