merge the "parallel" coverage files before invoking coveralls

This commit is contained in:
Jean-Paul Calderone 2023-08-09 09:56:43 -04:00
parent e27c2e9741
commit 38d6e5d840

View File

@ -243,7 +243,15 @@ jobs:
COVERALLS_PARALLEL: "true"
command: |
py -<<parameters.pythonVersion>> -m pip install coveralls==3.3.1
py -<<parameters.pythonVersion>> -m coveralls debug
# .coveragerc sets parallel = True so we don't have a `.coverage`
# file but a `.coverage.<unique stuff>` file (or maybe more than
# one, but probably not). coveralls can't work with these so
# merge them before invoking it.
py -<<parameters.pythonVersion>> -m coverage combine
# Now coveralls will be able to find the data, so have it do the
# upload.
py -<<parameters.pythonVersion>> -m coveralls
- "run":