From 23b68e46341a5e3be15a6b690ab6853055f11d8e Mon Sep 17 00:00:00 2001 From: Dylan Date: Wed, 28 Sep 2022 23:31:14 +0100 Subject: [PATCH] Test coverage --- .coveragerc | 2 ++ .github/workflows/python-tests.yml | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 .coveragerc diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..151b2f7 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,2 @@ +[run] +omit = wsgi.py \ No newline at end of file diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 271fa3d..4914f64 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -19,8 +19,8 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install pytest + pip install pytest pytest-cov if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Test with pytest run: | - pytest + pytest --cov-config=.coveragerc --cov=.