Mercurial > p > roundup > code
diff .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 |
line wrap: on
line diff
--- a/.github/workflows/ci-test.yml Sat Sep 10 20:38:44 2022 -0400 +++ b/.github/workflows/ci-test.yml Sat Sep 10 20:56:18 2022 -0400 @@ -193,6 +193,7 @@ -W "ignore:unclosed:ResourceWarning:roundup.roundup.demo" \ -W "ignore:unclosed file:ResourceWarning:enum" \ -v test/ --cov=roundup + codecov lcov else # python2 case pytest -v -r a test/ --cov=roundup @@ -206,9 +207,13 @@ token: ${{ secrets.CODECOV_TOKEN }} - name: Upload coverage to Coveralls + # python 2.7 version of codecov can't produce lcov files. + if: matrix.python-version != '2.7' uses: coverallsapp/github-action@master with: github-token: ${{ secrets.GITHUB_TOKEN }} + path-to-lcov: coverage.lcov + parallel: run-{{ matrix.python-version }}-{{ matrix.os }} - name: test build_doc run: |
