-
Notifications
You must be signed in to change notification settings - Fork 192
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
[WIP] Move CI to Github Actions #692
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Nabarun Pal <[email protected]>
Signed-off-by: Nabarun Pal <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #692 +/- ##
=========================================
Coverage ? 66.78%
=========================================
Files ? 50
Lines ? 1993
Branches ? 0
=========================================
Hits ? 1331
Misses ? 662
Partials ? 0 Continue to review full report at Codecov.
|
Signed-off-by: Nabarun Pal <[email protected]>
Signed-off-by: Nabarun Pal <[email protected]>
Signed-off-by: Nabarun Pal <[email protected]>
Signed-off-by: Nabarun Pal <[email protected]>
843fe55
to
9af2371
Compare
@@ -20,7 +20,7 @@ jobs: | |||
include: | |||
# Basic Checks | |||
- stage: primary | |||
env: NOXSESSION=lint-3.5 | |||
env: NOXSESSION=lint-3.8 |
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.
Maybe take out this change since we are planning to move away from Travis ?
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.
That is why the PR is labelled WIP
. It is still functionally incomplete.
run: | | ||
pip install --upgrade pip | ||
pip install nox | ||
pip install coveralls |
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.
This shouldn't be required 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.
Nice catch. 👍
@palnabarun Does github CI doesn't have the concept of sessions/env ? I see you had to setup 2 separate workflow files.
Also test-3.6 and test-3.8 is being skipped due to missing interpreters |
I didn't get you.
They are for different things. There is less clarity on how workflows should be structured, but functionally separating things seems to be the right way. |
These things are being worked out and that is why the PR is WIP.
Yes. Again this is WIP. There are issues with nox detecting the right environments. If I need to install all Python versions when using nox, it completely defeats the purpose. Since, I can elegantly use matrix in Github Actions, each individual version of Python can be setup separately. When I did that, nox broke when Python 2.7 was the interpreter. I am working to resolve the issues. |
Sorry I missed the WIP label and went ahead and reviewd. More used to see WIP in title 😛 |
Yes indeed. Maybe GitHub CI doesn't support nox session like Travis does. Both the workflows has a lot of duplicate setup. Would be nice if there was some base setup from which things could be derived. |
Ah. No problem. |
For Travis CI, the fix/workaround for the flakiness is to install their GitHub App, instead of using a webhook. OTOH, GitHub Actions is enough of an improvement in compute capacity, to justify switching IMO -- they give more "workers" per repo (20 + 5 MacOS), and their vCPUs are clocked higher (AFAIK). |
Travis CI is occasionally missing events from GitHub and hence becoming
very flaky to use, for example, in #682 and #689, the events are not being
detected at all.