diff .github/workflows/ci-test.yml @ 6951:31c56e8dfefb

3.6 python doesn't support lcov format either.
author John Rouillard <rouilj@ieee.org>
date Sat, 10 Sep 2022 21:35:17 -0400
parents b9ac14d1f748
children 4eea63155cff
line wrap: on
line diff
--- a/.github/workflows/ci-test.yml	Sat Sep 10 21:14:48 2022 -0400
+++ b/.github/workflows/ci-test.yml	Sat Sep 10 21:35:17 2022 -0400
@@ -193,7 +193,10 @@
               -W "ignore:unclosed:ResourceWarning:roundup.roundup.demo" \
               -W "ignore:unclosed file:ResourceWarning:enum" \
               -v  test/test_actions.py --cov=roundup
-            coverage lcov
+            if [[ "$PYTHON_VERSION" != "3.6" ]]; then
+              # coverage before 3.6 doesn't support lcov output
+              coverage lcov
+            fi
           else
             # python2 case
             pytest -v -r a test/test_actions.py --cov=roundup
@@ -207,8 +210,8 @@
           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'
+        # python 2.7 and 3.6 versions of coverage can't produce lcov files.
+        if: matrix.python-version != '2.7' && matrix.python-version != '3.6'
         uses: coverallsapp/github-action@master
         with:
           github-token: ${{ secrets.GITHUB_TOKEN }}

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