From 83c55c60e4522491b1dca7d56ddc6fdb72a5c120 Mon Sep 17 00:00:00 2001 From: Leon Helwerda Date: Sat, 11 Oct 2025 17:19:09 +0200 Subject: [PATCH] Fix coveralls in CI for python matrix versions - Perform coverage/coveralls in CI for Python 2.7 - Correct coveralls flag name for Python 3.x --- .github/workflows/ci.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fa3155e..e19e26e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,7 +56,7 @@ jobs: if: "${{ success() }}" with: github-token: "${{ secrets.GITHUB_TOKEN }}" - flag-name: "python-${{ matrix.python }}" + flag-name: "python-${{ matrix.python-version }}" parallel: true format: cobertura files: coverage.xml @@ -71,11 +71,20 @@ jobs: uses: actions/checkout@v5 - name: Install package run: | - pip install --upgrade pip setuptools + pip install --upgrade pip setuptools coverage pip install . - name: Run tests (unittest) run: | - python -m unittest discover -v || true + make coverage + - name: Coveralls upload + uses: coverallsapp/github-action@v2 + if: "${{ success() }}" + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" + flag-name: "python-2.7" + parallel: true + format: cobertura + files: coverage.xml - name: Legacy note run: echo "Python 2.7 run completed (non-blocking)."