comparison .github/workflows/ci-test.yml @ 6948:078073f7d207

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.
author John Rouillard <rouilj@ieee.org>
date Sat, 10 Sep 2022 20:56:18 -0400
parents 623dcbf3a5b5
children 887e9f880fe2
comparison
equal deleted inserted replaced
6947:623dcbf3a5b5 6948:078073f7d207
191 -W "ignore:the imp module:DeprecationWarning:gpg.gpgme:15" \ 191 -W "ignore:the imp module:DeprecationWarning:gpg.gpgme:15" \
192 -W "ignore:'U' mode::docutils.io" \ 192 -W "ignore:'U' mode::docutils.io" \
193 -W "ignore:unclosed:ResourceWarning:roundup.roundup.demo" \ 193 -W "ignore:unclosed:ResourceWarning:roundup.roundup.demo" \
194 -W "ignore:unclosed file:ResourceWarning:enum" \ 194 -W "ignore:unclosed file:ResourceWarning:enum" \
195 -v test/ --cov=roundup 195 -v test/ --cov=roundup
196 codecov lcov
196 else 197 else
197 # python2 case 198 # python2 case
198 pytest -v -r a test/ --cov=roundup 199 pytest -v -r a test/ --cov=roundup
199 fi 200 fi
200 201
204 with: 205 with:
205 verbose: true 206 verbose: true
206 token: ${{ secrets.CODECOV_TOKEN }} 207 token: ${{ secrets.CODECOV_TOKEN }}
207 208
208 - name: Upload coverage to Coveralls 209 - name: Upload coverage to Coveralls
210 # python 2.7 version of codecov can't produce lcov files.
211 if: matrix.python-version != '2.7'
209 uses: coverallsapp/github-action@master 212 uses: coverallsapp/github-action@master
210 with: 213 with:
211 github-token: ${{ secrets.GITHUB_TOKEN }} 214 github-token: ${{ secrets.GITHUB_TOKEN }}
215 path-to-lcov: coverage.lcov
216 parallel: run-{{ matrix.python-version }}-{{ matrix.os }}
212 217
213 - name: test build_doc 218 - name: test build_doc
214 run: | 219 run: |
215 python ./setup.py build_doc 220 python ./setup.py build_doc
216 221

Roundup Issue Tracker: http://roundup-tracker.org/