Skip to content

Commit 15fa59c

Browse files
authored
Switch coverage upload from Coveralls to Codecov (#389)
Relates: RHELWF-14238 Assisted-by: Claude Code (claude-opus-4-6)
1 parent f683522 commit 15fa59c

2 files changed

Lines changed: 13 additions & 13 deletions

File tree

.github/workflows/resultsdb.yaml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,18 @@ name: ResultsDB
44
"on":
55
pull_request:
66
push:
7+
branches:
8+
- develop
79
workflow_dispatch:
810
inputs: {}
911

1012
jobs:
1113
tests:
1214
name: Unit tests
1315
runs-on: ubuntu-latest
16+
permissions:
17+
id-token: write
18+
contents: read
1419
strategy:
1520
matrix:
1621
python-version: ["3.13"]
@@ -43,19 +48,13 @@ jobs:
4348
TOX_DOCKER_GATEWAY: "0.0.0.0"
4449
run: uvx --with tox-uv tox -e py3
4550

46-
- name: Run coveralls-python
47-
env:
48-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49-
COVERALLS_FLAG_NAME: python-${{ matrix.python-version }}
50-
COVERALLS_PARALLEL: true
51-
run: |
52-
uvx --with coveralls coveralls --service=github
53-
54-
- name: Upload coverage to Coveralls
55-
run: |
56-
uvx --with coveralls coveralls --finish --service=github
57-
env:
58-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
- name: Upload coverage to Codecov
52+
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7
53+
with:
54+
fail_ci_if_error: true
55+
verbose: true
56+
use_oidc: true
57+
flags: unit-tests
5958

6059
hadolint:
6160
name: Hadolint

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ addopts=
1212
--cov=.
1313
--cov-config=.coveragerc
1414
--cov-report=term-missing
15+
--cov-report=xml
1516

1617
[testenv]
1718
basepython = python3.13

0 commit comments

Comments
 (0)