Skip to content

Commit 98fe337

Browse files
th/test-ingest
1 parent 57df161 commit 98fe337

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,42 @@ jobs:
4040
fail_ci_if_error: true
4141
use_oidc: true
4242
verbose: true
43+
uploader:
44+
runs-on: ubuntu-latest
45+
permissions:
46+
id-token: write
47+
steps:
48+
- name: Checkout
49+
uses: actions/checkout@v4
50+
- name: Set up Python 3.10
51+
uses: actions/setup-python@v4
52+
with:
53+
python-version: '3.10'
54+
- name: Install dependencies
55+
run: pip install -r requirements.txt
56+
- name: Run tests and collect coverage
57+
run: pytest --cov app
58+
- name: Upload coverage to Codecov (arg token)
59+
uses: codecov/codecov-action@v3
60+
with:
61+
fail_ci_if_error: true
62+
token: ${{ secrets.CODECOV_TOKEN }}
63+
verbose: true
64+
- name: Upload coverage to Codecov (env token)
65+
uses: codecov/codecov-action@v3
66+
with:
67+
fail_ci_if_error: true
68+
verbose: true
69+
env:
70+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
71+
- name: Upload coverage to Codecov (no token)
72+
uses: codecov/codecov-action@v3
73+
with:
74+
fail_ci_if_error: true
75+
verbose: true
76+
- name: Upload coverage to Codecov (oidc)
77+
uses: codecov/codecov-action@v3
78+
with:
79+
fail_ci_if_error: true
80+
use_oidc: true
81+
verbose: true

0 commit comments

Comments
 (0)