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
18f09030
Commit
18f09030
authored
Nov 23, 2020
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run lint in the same job to speed up.
parent
40fce51c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
25 deletions
+13
-25
.github/workflows/ci.yml
.github/workflows/ci.yml
+10
-23
src/gevent/testing/sysinfo.py
src/gevent/testing/sysinfo.py
+3
-2
No files found.
.github/workflows/ci.yml
View file @
18f09030
...
...
@@ -58,7 +58,7 @@ jobs:
GEVENTSETUP_EV_VERIFY
:
1
# Disable some warnings produced by libev especially and also some Cython generated code.
# Note that changing the value of these variables invalidates configure caches
CFLAGS
:
-Ofast -pipe -Wno-strict-aliasing -Wno-comment
CFLAGS
:
-Ofast -pipe -Wno-strict-aliasing -Wno-comment
-Wno-unused-but-set-variable -Wno-unused-value
# Uploading built wheels for releases.
# TWINE_PASSWORD is encrypted and stored directly in the
# travis repo settings.
...
...
@@ -112,31 +112,18 @@ jobs:
python -c 'import greenlet; print(greenlet, greenlet.__version__)'
python -c 'import gevent.core; print(gevent.core.loop)'
python -c 'import gevent.ares; print(gevent.ares)'
-
name
:
Lint (Python 3.9)
if
:
${{ matrix.python-version == 3.9 }}
# We only need to do this on one version, and it should be Python 3, because
# pylint has stopped updating for Python 2.
# We do this here rather than a separate job to avoid the compilation overhead.
# TODO: Revisit this when we have caching of that part.
run
:
|
pip install -U pylint
python -m pylint --limit-inference-results=1 --rcfile=.pylintrc gevent
-
name
:
Run tests
run
:
|
python -m gevent.tests
lint
:
runs-on
:
ubuntu-latest
# Lint the code. Because this is a separate job, even if it fails fast
# the tests will still run. Put it at the top for fast feedback.
# We only need to do this on one version, and it should be Python 3, because
# pylint has stopped updating for Python 2.
steps
:
-
name
:
checkout
uses
:
actions/checkout@v2
-
name
:
Set up Python
3.9
uses
:
actions/setup-python@v2
with
:
python-version
:
3.9
-
name
:
pylint
# We need pylint, since above we're not installing a
# requirements file.
run
:
|
pip install -U pip
pip install -U wheel cffi greenlet pylint
pip install -U -e .[test]
python -m pylint --limit-inference-results=1 --rcfile=.pylintrc gevent
# TODO:
# * Configure caching
...
...
src/gevent/testing/sysinfo.py
View file @
18f09030
...
...
@@ -112,8 +112,9 @@ if WIN:
else
:
SHARED_OBJECT_EXTENSION
=
".so"
RUNNING_ON_TRAVIS
=
os
.
environ
.
get
(
'TRAVIS'
)
# We define GitHub actions to be similar to travis
RUNNING_ON_GITHUB_ACTIONS
=
os
.
environ
.
get
(
'GITHUB_ACTIONS'
)
RUNNING_ON_TRAVIS
=
os
.
environ
.
get
(
'TRAVIS'
)
or
RUNNING_ON_GITHUB_ACTIONS
RUNNING_ON_APPVEYOR
=
os
.
environ
.
get
(
'APPVEYOR'
)
RUNNING_ON_CI
=
RUNNING_ON_TRAVIS
or
RUNNING_ON_APPVEYOR
RUNNING_ON_MANYLINUX
=
os
.
environ
.
get
(
'GEVENT_MANYLINUX'
)
...
...
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