File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
12name : Workflow for Codecov example-python
23on : [push, pull_request, pull_request_target]
4+ permissions :
5+ id-token : write # This is required for requesting the JWT
6+ contents : read
37jobs :
48 run :
59 runs-on : ubuntu-latest
1620 run : pip install -r requirements.txt
1721 - name : Run tests and collect coverage
1822 run : pytest --cov app
19- - name : Upload coverage to Codecov
23+ - name : Upload coverage to Codecov (token)
2024 uses : codecov/codecov-action@th/fix-head-repo-for-tokenless
2125 with :
2226 verbose : true
2327 env :
2428 CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
29+ - name : Upload coverage to Codecov (oidc)
30+ uses : codecov/codecov-action@th/fix-head-repo-for-tokenless
31+ with :
32+ verbose : true
33+ use_oidc : true
34+ - name : Upload coverage to Codecov (no token)
35+ uses : codecov/codecov-action@th/fix-head-repo-for-tokenless
36+ with :
37+ verbose : true
You can’t perform that action at this time.
0 commit comments