Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,27 @@ jobs:

# Use GitHub's Linux Docker host
runs-on: ubuntu-latest

coverage:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v2
- name: Install RPM
run: sudo apt-get install -y rpm libkrb5-dev
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install Tox
run: pip install tox
- name: Run Tox
run: tox -e py39-django3-cov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
use_oidc: true
flags: unit-tests
files: coverage.xml
fail_ci_if_error: false
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ kobo
A collection of Python utilities.

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


Development
Expand Down
5 changes: 1 addition & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,12 @@ deps =
sitepackages = True

[testenv:py39-django3-cov]
passenv = GITHUB_*
deps=
{[testenv]deps}
pytest-cov
coveralls
usedevelop=true
commands=
pytest --cov=kobo {posargs}
coveralls
pytest --cov=kobo --cov-report=xml {posargs}
# for testing with python-rpm
sitepackages = True

Expand Down
Loading