ci: publish code coverage reports

This commit is contained in:
sebthom
2025-05-15 22:13:38 +02:00
parent 83c0d6adf0
commit 23910ffbf5
4 changed files with 47 additions and 1 deletions

View File

@@ -261,6 +261,36 @@ jobs:
docker push ghcr.io/$image_name
- name: Upload unit-test coverage to Codecov
uses: codecov/codecov-action@v5 # https://github.com/codecov/codecov-action
if: ${{ github.ref_name == 'main' || github.event_name == 'pull_request' }}
with:
files: .temp/coverage-unit.xml
flags: unit-tests
env_vars: OS,PYTHON
name: gha-u-${{ matrix.PYTHON_VERSION }}-${{ matrix.os }}
env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.PYTHON_VERSION }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
slug: ${{ github.repository }}
- name: Upload integration-test coverage to Codecov
uses: codecov/codecov-action@v5 # https://github.com/codecov/codecov-action
if: ${{ github.ref_name == 'main' || github.event_name == 'pull_request' }}
with:
files: .temp/coverage-integration.xml
flags: integration-tests
env_vars: OS,PYTHON
name: gha-i-${{ matrix.PYTHON_VERSION }}-${{ matrix.os }}
env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.PYTHON_VERSION }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
slug: ${{ github.repository }}
###########################################################
publish-release:
###########################################################