diff --git a/.coveragerc b/.coveragerc index 6965bba..25a5426 100644 --- a/.coveragerc +++ b/.coveragerc @@ -7,5 +7,16 @@ exclude_lines = [run] source = - haystack/backends/xapian_backend.py + haystack.backends.xapian_backend test_haystack/xapian_tests + +[paths] +# Merge coverage data from running tests in a django-haystack +# checkout with our own paths for coverage reporting. +backend = + ./ + */django-haystack/haystack/backends/ + +tests = + tests/xapian_tests/ + */django-haystack/test_haystack/xapian_tests/ diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1a9e53c..9ac7a04 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -98,7 +98,8 @@ jobs: - name: Coveralls run: | - cd django-haystack + coverage combine django-haystack/.coverage + coverage report coveralls --service=github env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}