diff --git a/.gitignore b/.gitignore index d5aeca07190085922ba7a663f5b7ece41edbed17..00ac7501afc884f227b151e60977a1f9e352365c 100644 --- a/.gitignore +++ b/.gitignore @@ -35,3 +35,7 @@ builds/ gmsh_tmp/ *.meshmode + +.coverage +pytest.xml +prof/ diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a77b24a3ba3e0e21995941ef40e21a9e388777f5..50b070b21aafdfea3270e9a5788eca7d3adc7473 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -28,10 +28,12 @@ Python 3 POCL: - export PY_EXE=python3 - export PYOPENCL_TEST=portable - export HDF5_USE_FILE_LOCKING=FALSE - - export EXTRA_INSTALL="pybind11 cython numpy pytest scipy mako wheel" + - export EXTRA_INSTALL="pybind11 cython numpy pytest pytest-cov scipy mako wheel" + - export PYTEST_FLAGS="--cov=volumential" - git submodule sync && git submodule update --init --recursive --remote - ((cd contrib/meshgen11_dealii/; ./build.sh) && echo "Using meshgen11_dealii.") || (echo "Using boxtree for meshgen.") - curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/build-and-test-py-project.sh + - sed -i -e '/^TESTABLES=.*/i PIP="${PY_EXE} $(which pip)" \n$PIP uninstall -y pytest-warnings' build-and-test-py-project.sh - ". ./build-and-test-py-project.sh" tags: - python3 @@ -50,10 +52,12 @@ Python 3 Intel: - source /opt/enable-intel-cl.sh - export PYOPENCL_TEST="intel(r):pu" - export HDF5_USE_FILE_LOCKING=FALSE - - export EXTRA_INSTALL="pybind11 cython numpy pytest scipy mako wheel" + - export PYTEST_FLAGS="--cov=volumential" + - export EXTRA_INSTALL="pybind11 cython numpy pytest pytest-cov scipy mako wheel" - git submodule sync && git submodule update --init --recursive --remote - ((cd contrib/meshgen11_dealii/; ./build.sh) && echo "Using meshgen11_dealii.") || (echo "Using boxtree for meshgen.") - curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/build-and-test-py-project.sh + - sed -i -e '/^TESTABLES=.*/i PIP="${PY_EXE} $(which pip)" \n$PIP uninstall -y pytest-warnings' build-and-test-py-project.sh - ". ./build-and-test-py-project.sh" tags: - python3 @@ -71,6 +75,7 @@ Python 3 Conda: - export SUMPY_FORCE_SYMBOLIC_BACKEND=symengine - export CONDA_ENVIRONMENT=.test-conda-env-py3.yml - export HDF5_USE_FILE_LOCKING=FALSE + - export PYTEST_FLAGS="--cov=volumential" - curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/build-and-test-py-project-within-miniconda.sh - ". ./build-and-test-py-project-within-miniconda.sh" tags: @@ -91,6 +96,7 @@ Python 3 Conda Apple: - export CONDA_ENVIRONMENT=.test-conda-env-py3-macos.yml - export HDF5_USE_FILE_LOCKING=FALSE - export CC=clang + - export PYTEST_FLAGS="--cov=volumential" - set -o xtrace - curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/master/build-and-test-py-project-within-miniconda.sh - ". ./build-and-test-py-project-within-miniconda.sh" diff --git a/README.md b/README.md index fe3f38b6db0288a3dafcf8c948c1614752bf4b5c..7f938c1f131d5ef9beb771c4667ad60427eaf655 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ # Volumential +![pipeline](https://gitlab.tiker.net/xywei/volumential/badges/master/pipeline.svg) +![coverage](https://gitlab.tiker.net/xywei/volumential/badges/master/coverage.svg) + Volumential (VOLUME poteNTIAL) provides toolset to solve volume potential integral equations efficiently via Fast Multipole Method. diff --git a/test/conftest.py b/test/conftest.py index b6e6b9bfce119470998cd41bfe45639aa9f0f25e..dcd9a6ac649a63b6e2471fb22e34226aa1d01eb8 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -64,7 +64,7 @@ def pytest_sessionstart(session): # pre-compute a basic table that is re-used in many tests. # can be easily turned off to run individual tests that do not require # the table cache. - if 0: + if 1: with NearFieldInteractionTableManager( "/tmp/volumential-tests.hdf5") as tm: table, _ = tm.get_table(