File tree 1 file changed +22
-2
lines changed
1 file changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ on: [push, pull_request]
3
3
jobs :
4
4
run :
5
5
runs-on : ubuntu-latest
6
+ permissions :
7
+ id-token : write
6
8
steps :
7
9
- name : Checkout
8
10
uses : actions/checkout@v4
14
16
run : pip install -r requirements.txt
15
17
- name : Run tests and collect coverage
16
18
run : pytest --cov app
17
- - name : Upload coverage to Codecov
18
- uses : codecov/codecov-action@v5
19
+ - name : Upload coverage to Codecov (arg token)
20
+ uses : codecov/codecov-action@main
19
21
with :
22
+ fail_ci_if_error : true
23
+ token : ${{ secrets.CODECOV_TOKEN }}
24
+ verbose : true
25
+ - name : Upload coverage to Codecov (env token)
26
+ uses : codecov/codecov-action@main
27
+ with :
28
+ fail_ci_if_error : true
20
29
verbose : true
21
30
env :
22
31
CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
32
+ - name : Upload coverage to Codecov (no token)
33
+ uses : codecov/codecov-action@main
34
+ with :
35
+ fail_ci_if_error : true
36
+ verbose : true
37
+ - name : Upload coverage to Codecov (oidc)
38
+ uses : codecov/codecov-action@main
39
+ with :
40
+ fail_ci_if_error : true
41
+ use_oidc : true
42
+ verbose : true
You can’t perform that action at this time.
0 commit comments