Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
5a83483c
Commit
5a83483c
authored
Nov 24, 2020
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more on coveralls.
parent
cade3665
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletion
+18
-1
.github/workflows/ci.yml
.github/workflows/ci.yml
+16
-1
src/gevent/testing/testrunner.py
src/gevent/testing/testrunner.py
+2
-0
No files found.
.github/workflows/ci.yml
View file @
5a83483c
...
@@ -177,7 +177,7 @@ jobs:
...
@@ -177,7 +177,7 @@ jobs:
pip install -U -q setuptools wheel twine
pip install -U -q setuptools wheel twine
pip install -q -U 'faulthandler; python_version == "2.7" and platform_python_implementation == "CPython"'
pip install -q -U 'faulthandler; python_version == "2.7" and platform_python_implementation == "CPython"'
pip install -q -U 'cffi;platform_python_implementation=="CPython"'
pip install -q -U 'cffi;platform_python_implementation=="CPython"'
pip install -q -U 'cython>=3.0a5'
pip install -q -U 'cython>=3.0a5'
coveralls
pip install 'greenlet>=1.0a1;platform_python_implementation=="CPython"'
pip install 'greenlet>=1.0a1;platform_python_implementation=="CPython"'
-
name
:
Build gevent
-
name
:
Build gevent
...
@@ -237,6 +237,8 @@ jobs:
...
@@ -237,6 +237,8 @@ jobs:
run
:
|
run
:
|
python -mgevent.tests $G_USE_COV --ignore tests_that_dont_use_resolver.txt
python -mgevent.tests $G_USE_COV --ignore tests_that_dont_use_resolver.txt
-
name
:
"
Tests:
dnspython
resolver"
-
name
:
"
Tests:
dnspython
resolver"
# This has known issues on PyPy3
if
:
(matrix.python-version == 2.7 || matrix.python-version == 3.9) && startsWith(runner.os, 'Linux')
env
:
env
:
GEVENT_RESOLVER
:
dnspython
GEVENT_RESOLVER
:
dnspython
run
:
|
run
:
|
...
@@ -269,12 +271,25 @@ jobs:
...
@@ -269,12 +271,25 @@ jobs:
run
:
|
run
:
|
python -m gevent.tests $G_USE_COV
python -m gevent.tests $G_USE_COV
-
name
:
Submit coverage
-
name
:
Submit coverage
if
:
${{ !startsWith(matrix.python-version, 'pypy') }}
env
:
COVERALLS_PARALLEL
:
true
COVERALLS_REPO_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
run
:
|
run
:
|
python -mpip install -U coveralls
python -mpip install -U coveralls
python -m coverage combine || true
python -m coverage combine || true
python -m coverage report -i || true
python -m coverage report -i || true
python -m coveralls || true
python -m coveralls || true
complete_coveralls
:
needs
:
build
runs-on
:
ubuntu-latest
steps
:
-
name
:
Coveralls Finished
uses
:
coverallsapp/github-action@master
with
:
github-token
:
${{ secrets.GITHUB_TOKEN }}
parallel-finished
:
true
# TODO:
# TODO:
# * Configure caching (XXX: Are these caches updated? The post step doesn't seem to do that.)
# * Configure caching (XXX: Are these caches updated? The post step doesn't seem to do that.)
...
...
src/gevent/testing/testrunner.py
View file @
5a83483c
...
@@ -813,6 +813,8 @@ def main():
...
@@ -813,6 +813,8 @@ def main():
# coverage files (which will have distinct suffixes because of parallel=true in .coveragerc
# coverage files (which will have distinct suffixes because of parallel=true in .coveragerc
# in this directory; makes them easier to combine and use with coverage report)
# in this directory; makes them easier to combine and use with coverage report)
os
.
environ
[
'COVERAGE_FILE'
]
=
os
.
path
.
abspath
(
"."
)
+
os
.
sep
+
".coverage"
os
.
environ
[
'COVERAGE_FILE'
]
=
os
.
path
.
abspath
(
"."
)
+
os
.
sep
+
".coverage"
# XXX: Log this with color. Right now, it interferes (buffering) with other early
# output.
print
(
"Enabling coverage to"
,
os
.
environ
[
'COVERAGE_FILE'
],
print
(
"Enabling coverage to"
,
os
.
environ
[
'COVERAGE_FILE'
],
"with site"
,
site_dir
,
"with site"
,
site_dir
,
"and configuration file"
,
cov_config
)
"and configuration file"
,
cov_config
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment