From 2128fcdb24bd2b3c3aaf446d193bf68b085abba3 Mon Sep 17 00:00:00 2001 From: harryswift01 Date: Mon, 8 Jun 2026 16:32:01 +0100 Subject: [PATCH] ci: add Coveralls coverage reporting --- .github/workflows/python-app.yml | 35 +++++++++++++++++++++++++------- 1 file changed, 28 insertions(+), 7 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 7dab889..1f3234f 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -52,14 +52,35 @@ jobs: conda info conda list - - name: install with pip + - name: Install package and test dependencies shell: bash -l {0} run: | - which pip - pip install -e . - conda list + which pip + pip install -e . + pip install pytest-cov + conda list - - name: Run test suite + - name: Run test suite with coverage shell: bash -l {0} - #run: prep-license ${{ secrets.MODELLER_KEY }} && pytest -v # no valid modeller key - run: pytest -v + run: | + pytest -v --cov=prepmd --cov-report=term-missing --cov-report=lcov + + - name: Coveralls GitHub Action + uses: coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e # v2.3.7 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + file: coverage.lcov + flag-name: ${{ matrix.os }}-py${{ matrix.python-version }} + parallel: true + fail-on-error: false + + coveralls: + name: Finalise Coveralls + needs: tests + runs-on: ubuntu-24.04 + steps: + - name: Coveralls Finished + uses: coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e # v2.3.7 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + parallel-finished: true \ No newline at end of file