Skip to content

Commit dd9e923

Browse files
committed
Report master CI and measured coverage through live badges
1 parent 3aee405 commit dd9e923

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

‎.github/workflows/main.yml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,16 @@ jobs:
9595
# showing the failing step in the logs
9696
continue-on-error: ${{ matrix.experimental || false }}
9797
run: tox -e ${{ matrix.tox-env }}
98+
- name: Export coverage
99+
if: matrix.tox-env == 'py313'
100+
run: .tox/py313/bin/python -m coverage lcov -o coverage.lcov
101+
- name: Upload coverage to Coveralls
102+
if: matrix.tox-env == 'py313' && github.event_name != 'pull_request' && startsWith(github.ref, 'refs/heads/')
103+
uses: coverallsapp/github-action@8d6379e14d29928660c4ba802d8e85393440b329 # v2.3.8
104+
with:
105+
file: coverage.lcov
106+
format: lcov
107+
fail-on-error: true
98108

99109
windows:
100110
name: tox (windows / py312)

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The fastest progress bar in Python, maintained since 2012.
44

55
<p align="center">
66
<a href="https://github.com/wolph/python-progressbar/actions/workflows/main.yml?query=branch%3Amaster"><img src="https://github.com/wolph/python-progressbar/actions/workflows/main.yml/badge.svg?branch=master" alt="test status"></a>
7-
<a href="https://coveralls.io/r/WoLpH/python-progressbar?branch=master"><img src="https://coveralls.io/repos/WoLpH/python-progressbar/badge.svg?branch=master" alt="coverage status"></a>
7+
<a href="https://coveralls.io/github/WoLpH/python-progressbar?branch=master"><img src="https://coveralls.io/repos/github/WoLpH/python-progressbar/badge.svg?branch=master" alt="Coverage on master"></a>
88
<a href="https://pypi.org/project/progressbar2/"><img src="https://img.shields.io/pypi/v/progressbar2" alt="PyPI version"></a>
99
<a href="https://pypi.org/project/progressbar2/"><img src="https://img.shields.io/pypi/dm/progressbar2" alt="PyPI downloads per month"></a>
1010
<a href="https://pypi.org/project/progressbar2/"><img src="https://img.shields.io/pypi/pyversions/progressbar2" alt="supported Python versions"></a>

0 commit comments

Comments
 (0)