-
Notifications
You must be signed in to change notification settings - Fork 113
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
Migrate to Github Actions #351
Conversation
Just for future reference: |
I believe it's working now. If it looks good, I will remove the travis file before merging. |
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.
Looks fine. My main question is whether it's possible to combine these into a single file. I don't like the code duplication in two files that are largely the same.
Agreed, will take a look, I believe it should be possible. |
One last thing: I believe we want After this is merged I will update the branch protection rule to switch the required status checksfrom Travis to GitHub Actions. |
I believe it's good to go! I unified two files and added if statements so that docs deployment are only called when we push to the master branch. Coveralls runs on both PR builds and merge builds. I tested the if statements here and it worked. I also removed the Travis file. |
Awesome stuff! Sorry to be picky but I really wanna make sure we're careful here. Did you ever test that this is working as expected? i.e. push a commit that deliberately broke something and check that GHA fails. EDIT: I guess that's not super relevant here but with Docker-based builds there was a time where we never checked out the PR, so we were always just testing the Docker image which always passed. I'm happy to merge this as is. |
I deliberately broke one of the tests, and now GHA fails as it is supposed to. I am not sure if we can deal with this at the GHA level. |
Yeah that seems like something to figure out with the OpenMDAO toolchain for building docs. We can investigate that in the future. Happy to merge now, just a reminder to make a release after. |
Purpose
Migrate CI/CD tool from Travis to Github Actions.
oas_pr.yml
is triggered when a PR is created. This runs tests and builds docs (but does not deploy it).oas_push.yml
is triggered when a PR is merged to master (i.e., pushed to master). In addition to the tests and doc builds, it deploys the docs to gh-pages.Type of change
What types of change is it?
Checklist