You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Workflows run in Linux, macOS, Windows, and containers on GitHub-hosted servers. You can create workflows using actions defined in your repository, open source actions in a public repository on GitHub, or a published Docker container image.
You can execute up to 20 workflows concurrently per repository.
You can execute up to 1000 API requests in an hour across all actions within a repository.
Each job in a workflow can run for up to 6 hours of execution time.
You can run up to 20 jobs concurrently per repository across all workflows.
From these descriptions, it seems better than other CIs we are using.
It seems we can use github actions for the CI tests:
I think we can start from tests for R-package. @jameslamb created #2335 for that recently. R tests will require new script files for stuff installation and test itself, so it's good way to not adjust our existing scripts, but develop new ones from the scratch and learn new CI platform.
I adapted the Travis matrix to a GitHub Actions matrix. It's nowhere close to being ready for a pull request, but there aren't many examples yet so I figured I'd share what I've found.
@hayesall Thank you very much! You freed me from fear of the blank page! Your work was really helpful for me.
@jameslamb I played with GitHub Actions today and managed to set something that tries to run all our tests on three platforms. It still suffers from environmental issues which result in command not found errors. However, feel free to start from this draft. https://github.com/microsoft/LightGBM/tree/github_actions
I removed all other CIs from that branch to not waste their resources.
Closed in favor of being in #2302. We decided to keep all feature requests in one place.
Welcome to contribute this feature! Please re-open this issue (or post a comment if you are not a topic starter) if you are actively working on implementing this feature.
re-opening this because I'm actively working on it, to try to give us more CI capacity for all the work going on in the R package (#3065 and jameslamb#25)
Was able to get past the command not found errors for conda and some other issues. My goal is to get that PR working on my fork for at least lint task and all r-package tasks across all operating systems, and then I'll open a PR here for us to discuss. I think a good starting point could be only to use it for R tests, since those often take the longest. I'd especially like to move the two r-package tests off of AppVeyor, since we are limited to all builds there running sequentially.
This issue has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.
Activity
hayesall commentedon Aug 24, 2019
Badges in the README can be updated too, here's an example:
The syntax should look like this (courtesy of Reddit user /u/peaceiris in this thread)
https://github.com/{github_id}/{repository}/workflows/{workflow_name}/badge.svgStrikerRUS commentedon Aug 24, 2019
I think we can start from tests for R-package. @jameslamb created #2335 for that recently. R tests will require new script files for stuff installation and test itself, so it's good way to not adjust our existing scripts, but develop new ones from the scratch and learn new CI platform.
jameslamb commentedon Aug 25, 2019
@StrikerRUS yes that's a good idea, I've been wanting to learn GitHub actions for CI.
I'll try that for #2335 (just assigned to myself).
hayesall commentedon Aug 26, 2019
I adapted the Travis matrix to a GitHub Actions matrix. It's nowhere close to being ready for a pull request, but there aren't many examples yet so I figured I'd share what I've found.
The workflow documentation is a good place to start, but it's still being expanded.
StrikerRUS commentedon Sep 8, 2019
@hayesall Thank you very much! You freed me from fear of the blank page! Your work was really helpful for me.
@jameslamb I played with GitHub Actions today and managed to set something that tries to run all our tests on three platforms. It still suffers from environmental issues which result in
command not founderrors. However, feel free to start from this draft.https://github.com/microsoft/LightGBM/tree/github_actions
I removed all other CIs from that branch to not waste their resources.
StrikerRUS commentedon Dec 15, 2019
Posting my draft of the action with the aim to remove stale
github_actionsbranch.One more thing to do is to find way to preserve conda's activation across different shell scripts.
StrikerRUS commentedon Dec 15, 2019
Closed in favor of being in #2302. We decided to keep all feature requests in one place.
Welcome to contribute this feature! Please re-open this issue (or post a comment if you are not a topic starter) if you are actively working on implementing this feature.
jameslamb commentedon May 22, 2020
re-opening this because I'm actively working on it, to try to give us more CI capacity for all the work going on in the R package (#3065 and jameslamb#25)
StrikerRUS commentedon May 22, 2020
@jameslamb If I'm not mistaken, Azure Pipelines and GitHub Actions share the same containers. Maybe this information will help you somehow.
jameslamb commentedon May 22, 2020
@StrikerRUS that does help! I got very close on my fork last night, actually: jameslamb#28
Was able to get past the
command not founderrors forcondaand some other issues. My goal is to get that PR working on my fork for at leastlinttask and allr-packagetasks across all operating systems, and then I'll open a PR here for us to discuss. I think a good starting point could be only to use it for R tests, since those often take the longest. I'd especially like to move the twor-packagetests off of AppVeyor, since we are limited to all builds there running sequentially.StrikerRUS commentedon May 22, 2020
@jameslamb
Wow, great! That is exact place where I abandoned my attempts to get it work. 🙂
Agree with all your other points!
jameslamb commentedon May 22, 2020
Your work up to #2353 (comment) was extremely helpful!
[ci] use GitHub Actions for R CI jobs (fixes lightgbm-org#2353) (ligh…
[ci] use GitHub Actions for R CI jobs (fixes lightgbm-org#2353) (ligh…
github-actions commentedon Aug 23, 2023
This issue has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.