Skip to content

Commit

Permalink
testing code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
alkidbaci committed Jun 27, 2024
1 parent 3eebbac commit 51fc399
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/github-actions-python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down

0 comments on commit 51fc399

Please sign in to comment.