From bd3b139003e16d45da272ffb2a3edbe00b2232f3 Mon Sep 17 00:00:00 2001 From: Lukas Berbuer Date: Thu, 13 Jul 2023 12:28:52 +0200 Subject: [PATCH] ci: fix coveralls coverage upload --- .github/workflows/ci.yml | 9 ++++++--- pyproject.toml | 11 +---------- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e7c30ae..48c21aa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,11 +34,14 @@ jobs: run: tox -e py-numba - name: Run PyInstaller test run: tox -e pyinstaller + - name: Coverage report + run: tox -e coverage-report - name: Upload coverage results to Coveralls if: matrix.os == 'ubuntu-latest' && matrix.python == '3.11' - run: tox -e coveralls - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: coverallsapp/github-action@v2 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + file: coverage.xml docs: runs-on: ubuntu-latest diff --git a/pyproject.toml b/pyproject.toml index a9a4b44..5ebdead 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -83,16 +83,7 @@ deps = coverage[toml]>=5 commands = - coverage combine coverage report - -[testenv:coveralls] -skip_install = true -deps = - coverage[toml]>=5 - coveralls -passenv = GITHUB_* -commands = - - coverage combine - coveralls --service=github + coverage xml [testenv:pyinstaller] deps = pyinstaller>=4