-
Notifications
You must be signed in to change notification settings - Fork 4
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 CI #59
Comments
That all sounds great. At some point, I'd like to add a few things to this process if appropriate (unless they belong elsewhere)
|
Not sure what you had planned, but it seemed to me like maybe all the data should be updated at the same time, i.e. as part of the same gh-actions workflow. Unless you want to be able to, say, update the literature independently from the other stuff. That might muddy the waters though, like the literature would be on its own version (if it even has a version) separate from the rest of the data.
For reference, here's the "versioning" workflow I have for Lab Website Template.
If what I said above is what you decide to do, there'd be one version for all of the data, and that version could be displayed in the header perhaps, with a link to the list of releases / changelog. Instead of the "record data compile time" step I had in my example
I'd imagine all these scripts would run in sequence in this same workflow, and then the workflow could be triggered by |
Just a sanity check here, are all the processing scripts and such actually in this repo? I feel like I've run into cases where I Because all of that code will need to be in this repo on the same branch for the CI process, or else we'll need some complicated workarounds. |
Hey Vince sorry I didn't see this, I thought CI was confidence interval for the plots lol, which is out of my jurisdiction. we can meet about this tomorrow or this week if you'd like |
#93 should have all the components needed for automation. See the |
It probably will always take at least a couple of hours if doing every citation, but i would look into running things in parallel to see if it improves times. The manubot script I gave you just runs one at a time. You can also pass multiple IDs to manubot in one command, though idk if it parallelizes that. |
I thought about doing things in parallel. It could cause rate limit issues if not done carefully. I've got it down to ~2 hours run time now, so let's see how we go and decide if it's worth the effort to find more speed-ups. |
Here's an updated workflow that is working except for the Put this in
|
I'm out of my depth on this CI stuff... This worked on my fork, but can't get it working in this repository. |
Here's the failing run: https://github.com/dashnowlab/STRchive/actions/runs/12246554105/job/34162663499 And the relevant logs:
It's failing with a 403 permission denied error code. So the action runner (i.e. the "github actions bot") doesn't have permissions to commit/push to the repo. I believe you'll need to allow actions read + write permissions in the repo settings: Hopefully if you change that and re-run the failed workflow, it should work. |
Oops, closed prematurely. Still working on the R bit of this. |
I believe this is what our GitHub Actions CI workflow should eventually look like:
This will allow you to either manually run the workflow and have it open a PR with the updated data, or open a PR manually and have it run the data update automatically on the PR.
As for the site, I'm thinking that we should use Netlify instead of GitHub Pages for the new website. They are both free and easy to use, but Netlify also gives us live deploy previews of PRs, built in. You can of course also set up your Netlify site to use your custom domain. And we'll have it configured such that it just rebuilds and redeploys the site when there's any changes in the repo (on main or any PR branch), including the
/data
folder. As such, there's no need to trigger anything related to the site in this gh-actions workflow; it will happen automatically. Yes this means that the site will be rebuilt when ineffectual things like the readme change, but the cost is minimal; the site only takes a few seconds to build.The text was updated successfully, but these errors were encountered: