diff --git a/.coveragerc b/.coveragerc index 8269d0d..4be0d73 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,3 +1,6 @@ +[run] +relative_files = True + [report] exclude_lines = pragma: no cover diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9938dd2..2e40609 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -33,7 +33,10 @@ jobs: path: ./wheelhouse/*.whl - name: Coveralls + if: matrix.os == 'linux-intel' uses: coverallsapp/github-action@v2 + with: + files: ./wheelhouse/.coverage* build-sdist: name: Build source distribution diff --git a/pyproject.toml b/pyproject.toml index 2b8d324..087495f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -78,6 +78,7 @@ test-groups = ["dev"] test-command = [ "python -c 'import mwparserfromhell.parser._tokenizer'", "pytest {project}/tests -rxs --cov=mwparserfromhell", + "mkdir -p /output && mv .coverage /output/.coverage.$(uuidgen)" ] [tool.pyright]