Skip to content
This repository was archived by the owner on Mar 14, 2024. It is now read-only.

Add lint and coverage report on ci builds #65

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 8 additions & 14 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
python3 -m venv ~/venv
. ~/venv/bin/activate
pip install pip --upgrade --upgrade-strategy eager
pip install flake8 pytest pytest-cov
pip install torch --no-index --find-links https://download.pytorch.org/whl/cpu/torch_stable.html --no-deps --upgrade --upgrade-strategy eager --progress-bar off
pip install . --upgrade --upgrade-strategy eager --progress-bar off
pip freeze > ~/pip_freeze.txt
Expand All @@ -33,19 +34,12 @@ jobs:
paths:
- ~/.cache/pip
- run:
name: Test all the things!
name: Lint files
command: |
. ~/venv/bin/activate
python3 test/test_batching.py
python3 test/test_bucket_scheduling.py
python3 test/test_distributed.py
python3 test/test_edgelist.py
python3 test/test_entitylist.py
python3 test/test_fileio.py
python3 test/test_functional.py
python3 test/test_losses.py
python3 test/test_model.py
python3 test/test_schema.py
python3 test/test_stats.py
python3 test/test_train.py
python3 test/test_util.py
flake8 test torchbiggraph --max-line-length=127 --count --show-source --statistics
- run:
name: Run all the tests
command: |
. ~/venv/bin/activate
pytest test --cov=torchbiggraph --cov-report=term
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ __pycache__/
*.py[cod]
*.so
venv/
.coverage*
Pipfile