From 9c38d7914cbc08f1d3229b19553a42c6c25d30fe Mon Sep 17 00:00:00 2001 From: q-posev Date: Wed, 4 May 2022 15:29:35 +0200 Subject: [PATCH] Fix CI --- .github/workflows/test-build.yml | 3 +++ Makefile.am | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index c4ea4aa..cb34a95 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -44,6 +44,7 @@ jobs: cd _build ../configure --enable-silent-rules --enable-debug make -j 4 + make install - name: Run test run: make -j 4 check @@ -71,9 +72,11 @@ jobs: - name: Install the Python API run: make python-install + working-directory: _build - name: Test the Python API run: make python-test + working-directory: _build x86_macos: diff --git a/Makefile.am b/Makefile.am index 3843e0d..6065675 100644 --- a/Makefile.am +++ b/Makefile.am @@ -181,12 +181,12 @@ numpy_i = $(srcdir)/python/src/numpy.i python-install: $(qmckl_h) $(pyqmckl_i) $(process_header_py) $(setup_py) - cp $(qmckl_h) python/src/ - cd python/ && \ + cp $(qmckl_h) $(srcdir)/python/src/ + cd $(srcdir)/python/ && \ ./pip_install_pyqmckl.sh python-test: $(test_py) - cd python/test/ && \ + cd $(srcdir)/python/test/ && \ python test_api.py CLEANFILES += $(pyqmckl_wrap_c) \