Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: remove numpy<1.21 dep; Dev: add Makefile, coverage, nodemon #106

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
25 changes: 25 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# pygraphblas/Makefile

# DEVELOP with `make debug`
debug:
nodemon -L -V

# use "time -p" for a benchmark (pytest has timings, but this time combines multiple sets of tests together)
.PHONY: debug_command
debug-command:
time -p $(MAKE) test

# TESTS
test: test-parallel


# number of worker threads (2 works in github actions, more is good for lots of tests (we don't have a lot))
N_WORKERS=2

# parallel unit tests (for dev rig)
test-parallel:
py.test -n $(N_WORKERS) --cov=pygraphblas --cov-config=.coveragerc --cov-report=term-missing --cov-report=lcov:coverage/lcov.info -vv tests

# sequential unit tests (for CI)
test-sequential:
pytest --cov=pygraphblas --cov-config=.coveragerc --cov-report=term-missing --cov-report=lcov:coverage/lcov.info -vv tests
Loading