Commit fc8f270a authored by Jason Madden's avatar Jason Madden

More coverage and retries.

parent 01ac47b0
...@@ -25,7 +25,8 @@ omit = ...@@ -25,7 +25,8 @@ omit =
*/gevent/resolver/*.so */gevent/resolver/*.so
# New in 5.0; required for the GHA coveralls submission. # New in 5.0; required for the GHA coveralls submission.
# Perhaps this obsoletes the source section in [paths]? # Perhaps this obsoletes the source section in [paths]?
relative_files = True # XXX: Nope, that just led to reporting 0% coverage.
#relative_files = True
[report] [report]
# Coverage is run on Linux under cPython 2/3 and pypy # Coverage is run on Linux under cPython 2/3 and pypy
......
...@@ -186,14 +186,17 @@ jobs: ...@@ -186,14 +186,17 @@ jobs:
run: | run: |
# Next, build the wheel *in place*. This helps ccache, and also lets us cache the configure # Next, build the wheel *in place*. This helps ccache, and also lets us cache the configure
# output (pip install uses a random temporary directory, making this difficult) # output (pip install uses a random temporary directory, making this difficult)
python setup.py build_ext -i
python setup.py bdist_wheel python setup.py bdist_wheel
- name: Check gevent build - name: Check gevent build
run: | run: |
ls -l dist ls -l dist
twine check dist/* twine check dist/*
- name: Install gevent - name: Install gevent
# I'd prefer to install the wheel in non-editable mode, but that seems to
# screw up coverage reporting.
run: | run: |
pip install -U --no-compile `ls dist/*whl`[test] pip install -U -e .[test]
- name: Report environment details - name: Report environment details
run: | run: |
python --version python --version
...@@ -264,16 +267,17 @@ jobs: ...@@ -264,16 +267,17 @@ jobs:
run: | run: |
python -mgevent.tests --coverage || python -m gevent.tests python -mgevent.tests --coverage || python -m gevent.tests
- name: "Tests: libuv" - name: "Tests: libuv"
if: (matrix.python-version == 2.7 || matrix.python-version == 3.9)
env: env:
GEVENT_LOOP: libuv GEVENT_LOOP: libuv
run: | run: |
python -m gevent.tests $G_USE_COV python -m gevent.tests $G_USE_COV || python -m gevent.tests
- name: "Tests: libev-cffi" - name: "Tests: libev-cffi"
if: (matrix.python-version == 2.7 || matrix.python-version == 3.9) && startsWith(runner.os, 'Linux') if: (matrix.python-version == 2.7 || matrix.python-version == 3.9) && startsWith(runner.os, 'Linux')
env: env:
GEVENT_LOOP: libev-cffi GEVENT_LOOP: libev-cffi
run: | run: |
python -m gevent.tests $G_USE_COV python -m gevent.tests $G_USE_COV || python -m gevent.tests
- name: Report coverage - name: Report coverage
if: ${{ !startsWith(matrix.python-version, 'pypy') }} if: ${{ !startsWith(matrix.python-version, 'pypy') }}
run: | run: |
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment