Skip to content

Commit 195747d

Browse files
fix: test it all
1 parent 76d01fc commit 195747d

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Workflow for Codecov example-python
22
on: [push, pull_request, pull_request_target]
3+
permissions:
4+
id-token: write # This is required for requesting the JWT
5+
contents: read
36
jobs:
47
run:
58
runs-on: ubuntu-latest
@@ -16,9 +19,18 @@ jobs:
1619
run: pip install -r requirements.txt
1720
- name: Run tests and collect coverage
1821
run: pytest --cov app
19-
- name: Upload coverage to Codecov
22+
- name: Upload coverage to Codecov (token)
2023
uses: codecov/codecov-action@th/fix-head-repo-for-tokenless
2124
with:
2225
verbose: true
2326
env:
2427
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
28+
- name: Upload coverage to Codecov (oidc)
29+
uses: codecov/codecov-action@th/fix-head-repo-for-tokenless
30+
with:
31+
verbose: true
32+
use_oidc: true
33+
- name: Upload coverage to Codecov (no token)
34+
uses: codecov/codecov-action@th/fix-head-repo-for-tokenless
35+
with:
36+
verbose: true

0 commit comments

Comments
 (0)