mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 02:31:45 +01:00
ci: publish code coverage reports
This commit is contained in:
30
.github/workflows/build.yml
vendored
30
.github/workflows/build.yml
vendored
@@ -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:
|
||||
###########################################################
|
||||
|
||||
Reference in New Issue
Block a user