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) \