Skip to content

Commit b46604d

Browse files
committed
3.6 python doesn't support lcov format either.
1 parent 41e68d9 commit b46604d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/ci-test.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,10 @@ jobs:
193193
-W "ignore:unclosed:ResourceWarning:roundup.roundup.demo" \
194194
-W "ignore:unclosed file:ResourceWarning:enum" \
195195
-v test/test_actions.py --cov=roundup
196-
coverage lcov
196+
if [[ "$PYTHON_VERSION" != "3.6" ]]; then
197+
# coverage before 3.6 doesn't support lcov output
198+
coverage lcov
199+
fi
197200
else
198201
# python2 case
199202
pytest -v -r a test/test_actions.py --cov=roundup
@@ -207,8 +210,8 @@ jobs:
207210
token: ${{ secrets.CODECOV_TOKEN }}
208211

209212
- name: Upload coverage to Coveralls
210-
# python 2.7 version of codecov can't produce lcov files.
211-
if: matrix.python-version != '2.7'
213+
# python 2.7 and 3.6 versions of coverage can't produce lcov files.
214+
if: matrix.python-version != '2.7' && matrix.python-version != '3.6'
212215
uses: coverallsapp/github-action@master
213216
with:
214217
github-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)