Skip to content

Commit

Permalink
Add makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
smoia committed Nov 11, 2020
1 parent 2c7fb6d commit 2b802c0
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,4 +228,4 @@ workflows:
- unittest_37
- integrationtest_36
- integrationtest_37
- style_check
- style_check
20 changes: 20 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.PHONY: all lint

all_tests: lint unittest integration

help:
@echo "Please use 'make <target>' where <target> is one of:"
@echo " lint to run flake8 on all Python files"
@echo " unittest to run unit tests on phys2denoise"
@echo " integration to run the integration test set on phys2denoise"
@echo " all_tests to run 'lint', 'unittest', and 'integration'"

lint:
@flake8 phys2denoise

unittest:
@py.test --skipintegration --cov-append --cov-report term-missing --cov=phys2denoise phys2denoise/

integration:
@pip install -e ".[test]"
@py.test --log-cli-level=INFO --cov-append --cov-report term-missing --cov=phys2denoise -k test_integration phys2denoise/tests/test_integration.py

0 comments on commit 2b802c0

Please sign in to comment.