File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 44A 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
1010Development
Original file line number Diff line number Diff line change @@ -16,15 +16,12 @@ deps =
1616sitepackages = True
1717
1818[testenv:py39-django3-cov]
19- passenv = GITHUB_*
2019deps =
2120 {[testenv]deps}
2221 pytest-cov
23- coveralls
2422usedevelop =true
2523commands =
26- pytest --cov =kobo {posargs}
27- coveralls
24+ pytest --cov =kobo --cov-report =xml {posargs}
2825# for testing with python-rpm
2926sitepackages = True
3027
You can’t perform that action at this time.
0 commit comments