Skip to content

Commit

Permalink
Use Coveralls Github Action to send data to coveralls again
Browse files Browse the repository at this point in the history
This was lost when Travis stopped working, so our coveralls data
is frozen in 2021. This should get it working again using
https://github.com/marketplace/actions/coveralls-github-action if
I got it right.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
  • Loading branch information
AdamWill committed Jan 27, 2024
1 parent 2cb2e32 commit 2e6aa35
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/tox.yml
@@ -1,7 +1,7 @@
---
name: Test Python package with Tox

on: [pull_request]
on: ["push", "pull_request"]

jobs:
build:
Expand Down Expand Up @@ -34,6 +34,12 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
pip install tox tox-gh-actions coverage
- name: Test with tox
run: tox
- name: Produce coverage.lcov for coveralls
if: matrix.python-version == '3.11'
run: coverage lcov
- name: Coveralls
if: matrix.python-version == '3.11'
uses: coverallsapp/github-action@v2

0 comments on commit 2e6aa35

Please sign in to comment.