-
-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add same github actions than pylint but withtout benchmark/spelling #947
Conversation
f2f1746
to
9a8929b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for starting the work here! I never really got to it.
Some general comments:
- Should we add the classifier for
py310
if the tests already pass? - Travis does run
pylint
as well. This isn't covered here - The requirement files probably need some work. From looking at the
tox.ini
file, we probably need to add arequirements_pypy.txt
and arequirements_six.txt
file as well. https://github.com/PyCQA/astroid/blob/f2b197a4f8af0ceeddf435747a5c937c8632872a/tox.ini#L13-L28 - All tests (linux and window) should be run with and without
six
. Maybe this could work withstrategy.matrix
?
df19a76
to
f190b68
Compare
I left the |
7f092b3
to
f88f80c
Compare
8605cfc
to
89088ec
Compare
I opened #964 and #965 which should simplify this MR, once they are merged. After those things are done, I believe we only need to check that all the right requirements are installed and the cache key is generated correctly and it should be good to go. Maybe we should also pin the requirements in If you like, let me know once you're done with the rebase and I can take another look regarding the dependencies. |
dc40751
to
3a75027
Compare
#965 is not mergeable right now, I tried to do it too but we need to think about why six or not six is required for tests (I don't know much about six). So I think this is reviewable now. |
cc0d8d1
to
eed67ba
Compare
df4cff4
to
a6b1031
Compare
But withtout benchmark and speeling that are specific to pylint.
a6b1031
to
d220646
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only a few small things, mainly requirements_test_brain.txt
. That file isn't loaded inside requirements_test.txt
, which is the right decision, so it needs to be installed manually.
python -m venv venv | ||
. venv/bin/activate | ||
python -m pip install -U pip setuptools wheel | ||
pip install -U -r requirements_test.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pip install -U -r requirements_test.txt | |
pip install -U -r requirements_test.txt -r requirements_test_brain.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any specific reason why you didn't add this one here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No my bad !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you what do fix it or shall I? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll fix in a MR for fixing pylint's warning again. (pylint's master changed)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably pin the pylint
version for the formatting checks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I thought that as well, we don't want to have to fix unrelated pylint warning in a MR just because pylint changed.
02013b2
to
363a88b
Compare
- python: pypy3 | ||
env: TOXENV=pypy | ||
- python: 3.6 | ||
env: TOXENV=py36,py36-six |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just noticed, we probably broke the deploy stage by removing py36
here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was already broken but not the same way 😄 If you want to fix it feel free.. I'm aiming to fix pylint's warning and finish #937 before releasing 2.5.4
Description
Introduce github action because appveyor is hell and travis is changing his commercial proposal. Also python 3.10 seems to work for astroid so we might as well test it.
Type of Changes
Related Issue