Thank you all for the really helpful tips. Can I double check the steps of the migration?
Go to the repository or organization and create a DOCUMENTER_KEY secret
Copy/paste the CI.yml file shared by @dilumaluthge inside .github/workflows
Disable Travis CI in the repository or organization
Is it fine to disable Travis CI? I mean, can I just remove it from the list of authorized apps? Also, where is the GITHUB_TOKEN defined again? I couldn’t find this secret anywhere. Should I create this secret in the organization in case it doesn’t exist yet?
I am assuming that we still need Codecov enabled to get the coverage, we can’t remove it from the list of authorized apps, correct?
@Ronis_BR you created two separate actions one for stable Julia and another for nightly Julia because the latter can fail and you don’t care if it fails for merging PRs right? I like the idea. I wonder if there is a less brute force method to achieve the same result without having to copy two action files with the same contents basically. Anyone has suggestions?
I will try to trigger the new setup with a PR soon.
Yes, that’s exactly what I did. I searched a little bit if GitHub actions have an option to replace allow_failure of Travis but AFAIK it does not have anything that can replicate the behavior 100%.
Thank you @Ronis_BR, I will end up doing the same, or just removing Julia nightly from the build. I actually don’t look at it these days. I only care about stable Julia. Nightly was important for me when Julia was at versions < 1.
Does anyone know how to configure a configuration specific environment variable?
It seems that my attempt here failed https://github.com/FluxML/NNlib.jl/pull/246
(the ubuntu configuration with JULIA_NUM_THREADS: 2 was not spawn)
You could do something similar also for Github Actions, you need to change the environment variables, but this is definitely not the recommended way of doing code coverage for the last few years, not even in Travis since that was as easy as
OK, I made the conversion from Travis to GA but I can’t make Documenter to work. The make.jl looks like this and work with Travis but errors in GA if I don’t comment line https://github.com/GenericMappingTools/GMT.jl/blob/documenter-test/docs/make.jl#L6
and specially the one with push_preview = true,
otherwise it errors with (and if I comment it the docs do not get updated)
┌ Error: Git failed to fetch git@github.com:GenericMappingTools/GMT.jl.git
│ This can be caused by a DOCUMENTER_KEY variable that is not correctly set up.
│ Make sure that the environment variable is properly set up as a Base64-encoded string
│ of the SSH private key. You may need to re-generate the keys with DocumenterTools.
└ @ Documenter ~/.julia/packages/Documenter/FuXcO/src/Documenter.jl:554