-
Notifications
You must be signed in to change notification settings - Fork 194
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
Move to GitHub Actions for CI #621
Conversation
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.
LGTM, just a couple suggestions you might want to consider.
.github/workflows/ci.yml
Outdated
@@ -0,0 +1,64 @@ | |||
name: CI | |||
on: | |||
- push |
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.
Might want to limit this to
push:
branches: [master]
tags: ["*"]
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.
Done.
version: | ||
- '1.0' | ||
- '1' # automatically expands to the latest stable 1.x release of Julia | ||
- 'nightly' |
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 might be noisy as there isn't an equivalent to allow failures.
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 could have it in a separate step which is allowed to fail, like JuliaStats/StatsModels.jl#199.
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.
FWIW the statsmodels setup doesn't actually allow it to fail in the strict sense that you'll still get the red X on the commit if it's failing. but you can at least see isolate it in a separate workflow so you can have the nice green badge.
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 guess if you aren't editing these files that often that's probably fine.
arch: | ||
- x64 | ||
- x86 | ||
exclude: |
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 we actually need to test on all combinations of julia version, os and architecture?
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 that's a difficult point. AFAIK we used to do that until now. Another solution would be to do something like JuliaLang/Example.jl#55. But given that StatsBase has a relatively low activity it may be OK to run many 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, that's what we do. If you don't think StatsBase is gonna be that active going forward then I'm fine with leaving it.
OK let's go with this, we can refine it later but at least we'll have CI again. |
No description provided.