Skip to content

Move to GitHub Actions for CI#621

Merged
nalimilan merged 2 commits into
masterfrom
nl/ci
Dec 4, 2020
Merged

Move to GitHub Actions for CI#621
nalimilan merged 2 commits into
masterfrom
nl/ci

Conversation

@nalimilan

Copy link
Copy Markdown
Member

No description provided.

@rofinn rofinn left a comment

Copy link
Copy Markdown
Member

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.

Comment thread .github/workflows/ci.yml Outdated
@@ -0,0 +1,64 @@
name: CI
on:
- push

Copy link
Copy Markdown
Member

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: ["*"]

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Comment thread .github/workflows/ci.yml
version:
- '1.0'
- '1' # automatically expands to the latest stable 1.x release of Julia
- 'nightly'

Copy link
Copy Markdown
Member

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.

Copy link
Copy Markdown
Member Author

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.

Copy link
Copy Markdown
Member

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.

Copy link
Copy Markdown
Member

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.

Comment thread .github/workflows/ci.yml
arch:
- x64
- x86
exclude:

Copy link
Copy Markdown
Member

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?

Copy link
Copy Markdown
Member Author

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.

Copy link
Copy Markdown
Member

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.

@nalimilan

Copy link
Copy Markdown
Member Author

OK let's go with this, we can refine it later but at least we'll have CI again.

@nalimilan
nalimilan merged commit 0ba8a95 into master Dec 4, 2020
@nalimilan
nalimilan deleted the nl/ci branch December 4, 2020 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants