Setting Up CI
With a functional test suite, we are now ready to set up CI. Here we will demonstrate how to do this with GitHub actions.
Open GitHub Actions panel in GitHub:
Click "set up a workflow yourself"
Rename the file to
CI.yml
Paste this code. Which runs Julia v1.3 (under
jobs/test/strategy/matrix/version
) on Ubuntu, Mac, and Windows (underjobs/test/strategy/matrix/os
). The steps setup Julia, run the tests, and then upload the code coverage results to codecov. This will run on any pull request and on any push to the master branch.Commit the file and GitHub will automatically start running the tests
Add the badge: Go back to the GitHub Actions pane and select the currently running CI action and select "Create Status Badge", copy the badge link and paste it into the top of your README file.