Skip to content

Commit

Permalink
ci: migrate codecov to use components and flags
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxdaemon committed May 10, 2024
1 parent a5789cf commit 5f9b6d7
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 21 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,4 @@ jobs:
name: build-${{ matrix.python-ver }}
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittests
66 changes: 45 additions & 21 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,52 @@
comment:
require_changes: true

coverage:
status:
patch:
default: false
tests:
target: 100%
paths:
- tests/
core:
paths:
- cloudbot/
target: 100%
plugins:
paths:
- plugins/
project:
tests:
target: 100%
paths:
- tests/
core:
paths:
- cloudbot/
plugins:
paths:
- plugins/
default: false

component_management:
individual_components:
- component_id: types
name: types
flag_regexes:
- types
statuses:
- type: patch
target: 90%

- component_id: tests
name: tests
flag_regexes:
- unittests
paths:
- tests/
statuses:
- type: patch
target: 100%
- type: project
target: 100%

- component_id: core
name: core
flag_regexes:
- unittests
paths:
- cloudbot/
statuses:
- type: patch
target: 100%
- type: project

- component_id: plugins
name: plugins
flag_regexes:
- unittests
paths:
- plugins/
statuses:
- type: patch
- type: project

0 comments on commit 5f9b6d7

Please sign in to comment.