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=.