File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed
Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments