Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
---
name: Workflow for Codecov example-python
on: [push, pull_request]
on: [push, pull_request, pull_request_target]
permissions:
id-token: write # This is required for requesting the JWT
contents: read
jobs:
run:
runs-on: ubuntu-latest
Expand All @@ -15,10 +19,19 @@ jobs:
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run tests and collect coverage
run: pytest --cov app ${{ env.CODECOV_ATS_TESTS }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
run: pytest --cov app
- name: Upload coverage to Codecov (token)
uses: codecov/codecov-action@th/fix-head-repo-for-tokenless
with:
verbose: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Upload coverage to Codecov (oidc)
uses: codecov/codecov-action@th/fix-head-repo-for-tokenless
with:
verbose: true
use_oidc: true
- name: Upload coverage to Codecov (no token)
uses: codecov/codecov-action@th/fix-head-repo-for-tokenless
with:
verbose: true
Loading