-
Notifications
You must be signed in to change notification settings - Fork 1
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
Set up testing/CI and other basic package infrastructure #3
Comments
IMHO this is an excellent suggestion @tristanmontoya! I've added some of the things that I recommend to get right up front, before starting to consider true content additions, to the OP above ☝️ Most of these things can be found in TrixiShallowWater.jl, a good place to get started is maybe this early state where a lot of the above-mentioned points are already in but not much else yet: The advantage of setting up these things first is that test turnaround times are much faster now, which helps to get everything right. I even recommend to temporarily remove Trixi.jl from this package's dependencies such that you can avoid the precompilation time during CI runs while testing everything. Feel free to ping me in case of questions. |
It seems like the CI badge sometimes says "failing" even when the default branch passes. I think it may be reporting the status of failing CI runs triggered by a PR. I tried adding |
Thanks for looking into that, I didn't catch that the rest of the URL was different! I think it makes sense to change the TrixiAtmo.jl one to |
I think we should not run tests with coverage and upload the coverage data for ubuntu, macos, and windows. It seem to cause errors like
Maybe we should do coverage testing for the ubuntu run only, in case we in general want to do testing for MacOS and Windows as well. @tristanmontoya |
@benegee I don't fully understand all the details of the Trixi test setup yet, so I may be missing something, but it seems like the full tests are not running on Ubuntu, stopping after one or just a few time steps due to Could it be that the Ubuntu tests are checking coverage only, but not actually running fully? My understanding was that #23 would make Ubuntu have tests and coverage, while Windows and Mac would have tests only. Am I understanding correctly? |
You are absolutely right! This change
in #23 was not very clever. |
Originally posted by @tristanmontoya in #2 (comment)
List of things to set up (feel free to amend/check off):
test/runtests.jl
and friends, based on functionality in TrixiBase.jl).github/workflows/ci.yml
).JuliaFormatter
file (format #5)The text was updated successfully, but these errors were encountered: