From 465375d558803911fab9be5aeb3beb1b6c767bb4 Mon Sep 17 00:00:00 2001 From: Lukas Holecek Date: Tue, 9 Jun 2026 09:05:04 +0000 Subject: [PATCH] Switch coverage upload from Coveralls to Codecov Relates: RHELWF-14238 Assisted-by: Claude Code (claude-opus-4-6) --- .github/workflows/resultsdb.yaml | 25 ++++++++++++------------- tox.ini | 1 + 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/resultsdb.yaml b/.github/workflows/resultsdb.yaml index eeb11c8..0df3ef1 100644 --- a/.github/workflows/resultsdb.yaml +++ b/.github/workflows/resultsdb.yaml @@ -4,6 +4,8 @@ name: ResultsDB "on": pull_request: push: + branches: + - develop workflow_dispatch: inputs: {} @@ -11,6 +13,9 @@ jobs: tests: name: Unit tests runs-on: ubuntu-latest + permissions: + id-token: write + contents: read strategy: matrix: python-version: ["3.13"] @@ -43,19 +48,13 @@ jobs: TOX_DOCKER_GATEWAY: "0.0.0.0" run: uvx --with tox-uv tox -e py3 - - name: Run coveralls-python - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - COVERALLS_FLAG_NAME: python-${{ matrix.python-version }} - COVERALLS_PARALLEL: true - run: | - uvx --with coveralls coveralls --service=github - - - name: Upload coverage to Coveralls - run: | - uvx --with coveralls coveralls --finish --service=github - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Upload coverage to Codecov + uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7 + with: + fail_ci_if_error: true + verbose: true + use_oidc: true + flags: unit-tests hadolint: name: Hadolint diff --git a/tox.ini b/tox.ini index a83e5ef..00316e4 100644 --- a/tox.ini +++ b/tox.ini @@ -12,6 +12,7 @@ addopts= --cov=. --cov-config=.coveragerc --cov-report=term-missing + --cov-report=xml [testenv] basepython = python3.13