From 51fc3999a28441d3617ab7a27bfa5b4ce835f2ef Mon Sep 17 00:00:00 2001 From: Alkid Date: Thu, 27 Jun 2024 13:55:23 +0200 Subject: [PATCH] testing code coverage --- .github/workflows/github-actions-python-package.yml | 5 +++-- setup.py | 6 ++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/github-actions-python-package.yml b/.github/workflows/github-actions-python-package.yml index 11cd5330..7e6f81d9 100644 --- a/.github/workflows/github-actions-python-package.yml +++ b/.github/workflows/github-actions-python-package.yml @@ -23,7 +23,8 @@ jobs: - name: Lint with ruff run: | ruff --select=E501 --line-length=200 dicee/ - - name: Test with pytest + - name: Coverage report run: | wget https://files.dice-research.org/datasets/dice-embeddings/KGs.zip --no-check-certificate && unzip KGs.zip - python -m pytest -p no:warnings -x + coverage run -m pytest + coverage report -m diff --git a/setup.py b/setup.py index bb0ec75b..390e0cc7 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,8 @@ "gradio>=3.23.0", "rdflib>=7.0.0", "tiktoken>=0.5.1", - "matplotlib>=3.8.2" + "matplotlib>=3.8.2", + "coverage>=7.5.4" ] # some of the values are versioned whereas others aren't. @@ -40,7 +41,8 @@ def deps_list(*pkgs): "psutil", # Memory tracking: maybe remove later ? "matplotlib", # Unclear why it is needed "pykeen", # additional kge models - "numpy" + "numpy", + "coverage" ) # TODO: Remove polars, rdflib, tiktoken, psutil, matplotlib from min