-
-
Notifications
You must be signed in to change notification settings - Fork 37
Setup CI for the plot package #60
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
Conversation
... modeled after the racket/web-server ci.yml
.github/workflows/ci.yml
Outdated
| racket-variant: ["regular"] | ||
| steps: | ||
| - uses: actions/checkout@master | ||
| - uses: Bogdanp/setup-racket@v0.3 |
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 recommend using the latest version, which is 0.8 right now.
| - run: raco pkg config --set catalogs `cat catalogs.txt` | ||
| - run: raco pkg config catalogs | ||
| - run: sudo raco pkg install --batch --auto plot | ||
| # - run: raco test --drdr plot-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.
You might need xvfb here; see the use at https://github.com/racket/typed-racket/blob/master/.github/workflows/ci.yml#L29
.github/workflows/ci.yml
Outdated
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| racket-version: ["7.7"] |
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.
Probably good to test snapshots as well.
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 added the "current" as well as CS variants for Racket to the built, although, I am not convinced of their value to the build of plot -- "current" will be tested once the changes are merged to master anyway. OTOH, we don't pay for the build VM time...
This sets up a CI build for the plot package, scheduled to run for pushes and pull requests. Currently it only runs for Racket version 7.7 and it does not run the tests. Tests need are currently run manually and their output visually inspected.
It is inspired by the web-server CI build, but uses a different strategy for the build:
NOTE: there are several commits in this branch, as I was experimenting with different approaches, but I will squash the commits when merged to the master branch, so only one commit shows up.