Skip to content

Commit eddfe4b

Browse files
committed
Onboard test coverage to Codecov
Adds the codecov action to the coverage workflow in tox-test.yml Updates Coverage Status in README.md to point to codecov
1 parent 82b07f2 commit eddfe4b

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/tox-test.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ jobs:
3333
run: tox -e pidiff
3434
coverage:
3535
runs-on: ubuntu-latest
36+
permissions:
37+
id-token: write
3638
steps:
3739
- uses: actions/checkout@v2
3840
- name: Install RPM
@@ -45,6 +47,14 @@ jobs:
4547
run: pip install tox
4648
- name: Run Tox
4749
run: tox -e cov
50+
- name: Upload coverage to Codecov
51+
uses: codecov/codecov-action@v5
52+
if: github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref =='refs/heads/master')
53+
with:
54+
use_oidc: true
55+
flags: unit-tests
56+
files: coverage.xml
57+
fail_ci_if_error: false
4858
docs:
4959
runs-on: ubuntu-latest
5060
steps:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ A Python library for collecting information from push tasks, used by
55
[release-engineering](https://github.com/release-engineering) publishing tools.
66

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

1010
- [Source](https://github.com/release-engineering/pushcollector)
1111
- [Documentation](https://release-engineering.github.io/pushcollector/)

0 commit comments

Comments
 (0)