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
and allow coveralls to post comments on PRs.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
  • Loading branch information
AdamWill committed Feb 16, 2024
1 parent a32f28f commit daa68b2
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 daa68b2

Please sign in to comment.