Skip to content

Commit

Permalink
fix: codecov carryforward (#2006)
Browse files Browse the repository at this point in the history
  • Loading branch information
aarnphm authored Nov 15, 2021
1 parent 5395110 commit 9ac5d87
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 16 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ jobs:
run: ./scripts/ci/style/docs_spell_check.sh

unit_tests:
needs:
- diff

if: ${{ (github.event_name == 'pull_request' && needs.diff.outputs.bentoml == 'true') || github.event_name == 'push' }}
name: python${{ matrix.python-version }}_unit_tests (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -102,6 +106,10 @@ jobs:
verbose: true

bento_server_integration_tests:
needs:
- diff

if: ${{ (github.event_name == 'pull_request' && needs.diff.outputs.bentoml == 'true') || github.event_name == 'push' }}
name: bento_server_integration_tests (${{ matrix.os }})
runs-on: ${{ matrix.os }}
timeout-minutes: 20
Expand Down
33 changes: 17 additions & 16 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
comment:
layout: "reach, diff, files"
layout: "reach, diff, flags, files"
behavior: default
require_base: no
require_head: yes
require_head: no
branches:
- "main"
- "bentoml-1.0"
show_carryforward_flags: false
show_carryforward_flags: true

ignore:
- "bentoml/testing/**/*"
- "bentoml/_internal/typing_extensions/**/*"
- "bentoml/_internal/types.py"
- "bentoml/__main__.py"
- "bentoml/_version.py"
Expand All @@ -23,21 +22,25 @@ coverage:
status:
project:
default:
target: 83%
target: auto
threshold: 10%
base: auto
frameworks:
target: auto
threshold: 10%
flags:
- frameworks
bento-server:
target: auto
threshold: 10%
flags:
- bento-server
patch:
default:
target: 83%
threshold: 10%
if_ci_failed: failure
only_pulls: true

flag_management:
default_rules:
carryforward: true
flags:
frameworks:
name: frameworks
carryforward: true
paths:
- bentoml/catboost.py
- bentoml/detectron.py
Expand All @@ -64,9 +67,7 @@ flag_management:
- bentoml/tensorflow.py
- bentoml/transformers.py
- bentoml/xgboost.py
statuses:
target: 90%
bento-server:
name: bento-server
carryforward: true
paths:
- "bentoml/_internal/**/*"

0 comments on commit 9ac5d87

Please sign in to comment.