diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d94e6e28c..9b66b8859 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -39,10 +39,11 @@ jobs: python -m pip install pybind11[global] export pybind11_DIR=$(python -m pybind11 --cmakedir) python -m pip install .[dmet,ebcc] --user - python -m pip install .[pygnme] --user - export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$(python -c "import sysconfig; print(sysconfig.get_path('purelib'))") + python -m pip install -e .[pygnme] --user + export LD_LIBRARY_PATH=$(dirname $(python -c 'import pygnme;print(pygnme.__path__[0])') ):$LD_LIBRARY_PATH - name: Run unit tests run: | + export LD_LIBRARY_PATH=$(dirname $(python -c 'import pygnme;print(pygnme.__path__[0])') ):$LD_LIBRARY_PATH python -m pip install pytest pytest-cov --user python .github/workflows/run_tests.py - name: Upload to codecov