Skip to content

Commit 5432c79

Browse files
fix: test it all
1 parent 2bccac9 commit 5432c79

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/ci.yml

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
---
12
name: Workflow for Codecov example-python
23
on: [push, pull_request, pull_request_target]
4+
permissions:
5+
id-token: write # This is required for requesting the JWT
6+
contents: read
37
jobs:
48
run:
59
runs-on: ubuntu-latest
@@ -16,9 +20,18 @@ jobs:
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

0 commit comments

Comments
 (0)