From 2b802c0ce856c5d1ccfc3f20603d870a172e795b Mon Sep 17 00:00:00 2001 From: smoia Date: Wed, 11 Nov 2020 09:55:05 +0100 Subject: [PATCH] Add makefile --- .circleci/config.yml | 2 +- Makefile | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 Makefile diff --git a/.circleci/config.yml b/.circleci/config.yml index 18ad13f..d64f737 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -228,4 +228,4 @@ workflows: - unittest_37 - integrationtest_36 - integrationtest_37 - - style_check \ No newline at end of file + - style_check diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..52f0e87 --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +.PHONY: all lint + +all_tests: lint unittest integration + +help: + @echo "Please use 'make ' where 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