Skip to content

Commit 42203b8

Browse files
committed
coveralls for 3.x only, add paralle unique build key
disable upload to coveralls for 2.7. I need some way under python 2.x to generate coverage lcov syle files. Otherwise I lose coverage for the 2.x code paths. Call 'coverage lcov' only in 3.x pytest codepath not 2.x. Add unique tag for each parallel upload for coveralls. Also set lcov file name to what coverage lcov outputs.
1 parent e6c80a9 commit 42203b8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/ci-test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ jobs:
193193
-W "ignore:unclosed:ResourceWarning:roundup.roundup.demo" \
194194
-W "ignore:unclosed file:ResourceWarning:enum" \
195195
-v test/ --cov=roundup
196+
codecov lcov
196197
else
197198
# python2 case
198199
pytest -v -r a test/ --cov=roundup
@@ -206,9 +207,13 @@ jobs:
206207
token: ${{ secrets.CODECOV_TOKEN }}
207208

208209
- name: Upload coverage to Coveralls
210+
# python 2.7 version of codecov can't produce lcov files.
211+
if: matrix.python-version != '2.7'
209212
uses: coverallsapp/github-action@master
210213
with:
211214
github-token: ${{ secrets.GITHUB_TOKEN }}
215+
path-to-lcov: coverage.lcov
216+
parallel: run-{{ matrix.python-version }}-{{ matrix.os }}
212217

213218
- name: test build_doc
214219
run: |

0 commit comments

Comments
 (0)