File tree 3 files changed +34
-1
lines changed
3 files changed +34
-1
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ defaults:
12
12
jobs :
13
13
upload-metrics :
14
14
runs-on : ubuntu-latest
15
- if : ${{ always( ) }}
15
+ if : ${{ !contains(github.event.pull_request.labels.*.name, 'codecov-bypass' ) }}
16
16
steps :
17
17
- name : Checkout repository
18
18
uses : actions/checkout@v4
@@ -26,10 +26,27 @@ jobs:
26
26
codecov_yml_path : .codecov.yml
27
27
28
28
- uses : codecov/codecov-action@v4
29
+ if : ${{ !contains(github.event.pull_request.labels.*.name, 'codecov-bypass') }}
29
30
with :
30
31
file : onboard_av_binary_coverage.dat
31
32
flags : onboard_av_binary
32
33
verbose : true
33
34
token : ${{ secrets.CODECOV_TOKEN }}
34
35
codecov_yml_path : .codecov.yml
35
36
37
+ coverage-bypass :
38
+ runs-on : ubuntu-latest
39
+ if : ${{ contains(github.event.pull_request.labels.*.name, 'codecov-bypass') }}
40
+ steps :
41
+ - name : Checkout repository
42
+ uses : actions/checkout@v4
43
+
44
+ - name : upload empty report for status checks
45
+ run : |
46
+ curl -Os https://cli.codecov.io/v0.8.0/linux/codecov
47
+ chmod +x codecov
48
+ ./codecov -v create-commit -t ${{ secrets.CODECOV_TOKEN }}
49
+ ./codecov -v create-report -t ${{ secrets.CODECOV_TOKEN }}
50
+ ./codecov -v empty-upload -t ${{ secrets.CODECOV_TOKEN }} --force
51
+ env :
52
+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change 4
4
d
5
5
e
6
6
k
7
+ f
Original file line number Diff line number Diff line change
1
+ pub fn add_two_integers ( a : i32 , b : i32 ) -> i32 {
2
+ a + b
3
+ }
4
+
5
+ #[ cfg( test) ]
6
+ mod tests {
7
+ use super :: * ;
8
+
9
+ #[ test]
10
+ fn test_add_two_integers ( ) {
11
+ assert_eq ! ( add_two_integers( 1 , 2 ) , 3 ) ;
12
+ assert_eq ! ( add_two_integers( -1 , 1 ) , 0 ) ;
13
+ assert_eq ! ( add_two_integers( -5 , -3 ) , -8 ) ;
14
+ }
15
+ }
You can’t perform that action at this time.
0 commit comments