From aa1c1b60eeea05cf70916a1a72f7fc74aef47c22 Mon Sep 17 00:00:00 2001 From: Heiko Thiery Date: Thu, 5 Jan 2023 16:41:53 +0100 Subject: [PATCH 1/2] actions: add publish to coveralls Signed-off-by: Heiko Thiery --- .github/workflows/test.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f8b4f42..322fa72 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,4 +26,22 @@ jobs: run: python setup.py install - name: Test - run: pytest --cov=pyfritzhome + run: pytest --cov=pyfritzhome --cov-report=lcov + + - name: Coveralls Parallel + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.github_token }} + flag-name: run-${{ matrix.test_number }} + parallel: true + path-to-lcov: coverage.lcov + + finish: + needs: tests + runs-on: ubuntu-22.04 + steps: + - name: Coveralls Finished + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.github_token }} + parallel-finished: true From 4d5bb48801157153ad4ddf4b23623d72f4647690 Mon Sep 17 00:00:00 2001 From: Heiko Thiery Date: Thu, 5 Jan 2023 16:52:16 +0100 Subject: [PATCH 2/2] setup: exclude pyfritzhome/cli.py from coverage And move coverage config to setup.cfg. Signed-off-by: Heiko Thiery --- .coveragerc | 8 -------- setup.cfg | 9 +++++++++ 2 files changed, 9 insertions(+), 8 deletions(-) delete mode 100644 .coveragerc diff --git a/.coveragerc b/.coveragerc deleted file mode 100644 index a01cb6b..0000000 --- a/.coveragerc +++ /dev/null @@ -1,8 +0,0 @@ -[report] -omit = - */python?.?/* - */site-packages/nose/* - */tests/* - */pyasn1/* - */ndg/* - */doc/* diff --git a/setup.cfg b/setup.cfg index 3c3634e..75fffb5 100644 --- a/setup.cfg +++ b/setup.cfg @@ -49,6 +49,15 @@ norecursedirs = .git addopts = --strict-markers +[coverage:run] +omit = + pyfritzhome/cli.py + */python?.?/* + */site-packages/nose/* + */tests/* + */pyasn1/* + */ndg/* + */doc/* [pep257] ignore = D100,D101,D102,D103,D104,D105,D203,D204