Skip to content

Commit f8f81dd

Browse files
authored
Merge pull request #283 from mbooz-rh/RHELDST-40401
Onboard test coverage to Codecov [RHELDST-40401]
2 parents 90b2a6e + f619532 commit f8f81dd

3 files changed

Lines changed: 26 additions & 5 deletions

File tree

.github/workflows/main.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,27 @@ jobs:
4545

4646
# Use GitHub's Linux Docker host
4747
runs-on: ubuntu-latest
48+
49+
coverage:
50+
runs-on: ubuntu-latest
51+
permissions:
52+
id-token: write
53+
steps:
54+
- uses: actions/checkout@v2
55+
- name: Install RPM
56+
run: sudo apt-get install -y rpm libkrb5-dev
57+
- name: Setup Python
58+
uses: actions/setup-python@v2
59+
with:
60+
python-version: 3.9
61+
- name: Install Tox
62+
run: pip install tox
63+
- name: Run Tox
64+
run: tox -e py39-django3-cov
65+
- name: Upload coverage to Codecov
66+
uses: codecov/codecov-action@v5
67+
with:
68+
use_oidc: true
69+
flags: unit-tests
70+
files: coverage.xml
71+
fail_ci_if_error: false

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ kobo
44
A collection of Python utilities.
55

66
[![Build Status](https://travis-ci.org/release-engineering/kobo.svg?branch=master)](https://travis-ci.org/release-engineering/kobo)
7-
[![Coverage Status](https://coveralls.io/repos/github/release-engineering/kobo/badge.svg?branch=master)](https://coveralls.io/github/release-engineering/kobo?branch=master)
7+
[![Coverage Status](https://app.codecov.io/gh/release-engineering/kobo)](https://app.codecov.io/gh/release-engineering/kobo)
88

99

1010
Development

tox.ini

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,12 @@ deps =
1616
sitepackages = True
1717

1818
[testenv:py39-django3-cov]
19-
passenv = GITHUB_*
2019
deps=
2120
{[testenv]deps}
2221
pytest-cov
23-
coveralls
2422
usedevelop=true
2523
commands=
26-
pytest --cov=kobo {posargs}
27-
coveralls
24+
pytest --cov=kobo --cov-report=xml {posargs}
2825
# for testing with python-rpm
2926
sitepackages = True
3027

0 commit comments

Comments
 (0)