-
Notifications
You must be signed in to change notification settings - Fork 22
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 julia test CI #120
Add julia test CI #120
Conversation
7573a36
to
7924072
Compare
The trade off with |
.github/workflows/test-julia.yml
Outdated
@@ -0,0 +1,36 @@ | |||
name: CI |
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 either have the names reflect julia/python, or combine the jobs into one workflow called "CI". I'm leaning slightly toward the latter, any thoughts?
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.
Oops, I guess I forgot to push that change. I had changed it to Test
locally, but never committed/pushed.
Combined testing jobs are fine with me. So we would just have test.yml, with name ____
, with two jobs names e.g. test-python
and test-julia
?
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, sounds good! I suppose naming it Test
also makes more sense than CI
.
I'm fine with leaving it on |
.github/workflows/test-julia.yml
Outdated
arch: ${{ matrix.arch }} | ||
- uses: actions/cache@v1 | ||
env: | ||
cache-name: cache-artifacts |
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 need both cache-name
and the -test-
component? I'm thinking these could be combined/shortened. Maybe something like ${{ runner.os }}-artifacts-${{ hashFiles('**/Project.toml') }}
.
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 have no idea. I'll change it per your suggestion.
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.
.github/workflows/test-julia.yml
Outdated
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} | ||
restore-keys: | | ||
${{ runner.os }}-test-${{ env.cache-name }}- | ||
${{ runner.os }}-test- |
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 think the last two keys are probably unnecessary
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 trust you, I have no idea what these do. I will remove.
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.
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 is great, thanks for setting it up.
Purpose
Addresses #80.
What is the code doing
On push or PR, runs tests on Julia versions {1.5, latest}. File generated using
PkgTemplates.jl
, default settings forPkgTemplates.GitHubActions
, with Julia version 1.0 removed manually from the version matrix (our current dependencies are apparently not compatible with 1.0, see https://github.com/Breakthrough-Energy/REISE.jl/runs/2267145710).Time to review
5 minutes? I don't understand github CI yaml very well but you probably do. Maybe we want to only test on push to match the python tests?