Skip to content

Commit d7c45d6

Browse files
committed
Custom uploader for 2.7 and 3.5
1 parent 2fe2273 commit d7c45d6

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/testing.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,17 @@ jobs:
2525
- name: Run tests
2626
run: pytest --cov --cov-branch --cov-report=xml
2727

28+
- name: Upload coverage to Codecov (bash uploader fallback)
29+
if: matrix.python == '2.7' || matrix.python == '3.5'
30+
run: |
31+
curl -s https://codecov.io/bash | bash -s -- \
32+
-t ${{ secrets.CODECOV_TOKEN }} \
33+
-f coverage.xml \
34+
-F python${{ matrix.python }} \
35+
-Z
36+
2837
- name: Upload coverage to Codecov
38+
if: matrix.python != '2.7' && matrix.python != '3.5'
2939
uses: codecov/codecov-action@v5
3040
with:
3141
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)