File tree 1 file changed +18
-2
lines changed
1 file changed +18
-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
21
+ with :
22
+ verbose : true
23
+ token : ${{ secrets.CODECOV_TOKEN }}
24
+ - name : Upload coverage to Codecov (env token)
25
+ uses : codecov/codecov-action@main
19
26
with :
20
27
verbose : true
21
28
env :
22
29
CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
30
+ - name : Upload coverage to Codecov (no token)
31
+ uses : codecov/codecov-action@main
32
+ with :
33
+ verbose : true
34
+ - name : Upload coverage to Codecov (oidc)
35
+ uses : codecov/codecov-action@main
36
+ with :
37
+ verbose : true
38
+ use_oidc : true
You can’t perform that action at this time.
0 commit comments