From 25bef5e6fa3bfc35802c31e96b5616e0288d19a9 Mon Sep 17 00:00:00 2001 From: Patrick Austin Date: Wed, 12 Apr 2023 15:17:41 +0000 Subject: [PATCH] Add .coveragerc and -e pip flag #48 --- .coveragerc | 4 ++++ .github/workflows/python-package-tests.yml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .coveragerc diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..1370074 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,4 @@ +[run] +branch = True +source = pymuonsuite +omit = pymuonsuite/test/* \ No newline at end of file diff --git a/.github/workflows/python-package-tests.yml b/.github/workflows/python-package-tests.yml index c4593aa..d74f82d 100644 --- a/.github/workflows/python-package-tests.yml +++ b/.github/workflows/python-package-tests.yml @@ -54,7 +54,7 @@ jobs: if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi shell: bash # Windows runners have Git Bash installed so this should work on all runners - name: Install package - run: pip install . + run: pip install -e . - name: Test with pytest run: pytest --cov pymuonsuite --cov-report xml - name: Upload to Codecov