-
-
Notifications
You must be signed in to change notification settings - Fork 180
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
Fix broken build process - implement nox
?
#601
Comments
I don't have admin access to the repo so I can't control secrets. @pllim ? |
I don't use nox . Where are the instructions to regenerate such a token? Thanks! |
To generate a new token, from the repo on github, go to 'Settings' at the top of the page, then 'Secrets and Variables' in the left panel, then 'Actions' --> 'New repository secret'; name it DISPATCH_GITHUB_TOKEN. For the secret value (the token), I'm not sure how astropy handles token permissions, but in general what's needed is a personal access token as described here. I think it needs to have read/write access in both the astropy-tutorials repo and the learn-astropy repo. |
Just to note here in response to Kelle's question about using |
Re: token -- I need time to investigate if fine grained PAT is even possible in org level but not sure when. Has this workflow ever succeeded before? If yes, how did you set it up prior? |
There might be a different way it's done in astropy, sorry I'm not sure. The workflow did succeed >1 year ago, but I think a former contractor may have set it up, or maybe @kelle knows more. |
https://github.com/peter-evans/repository-dispatch?tab=readme-ov-file#token says fine grained PAT is still in "beta" but we can try if you can confirm this is how you really want to proceed. |
Ok yes it looks like a fine-grained PAT is what github recommends (even though it's in beta), for the reason given here - "Your personal access token (classic) can access every repository that you can access. GitHub recommends that you use fine-grained personal access tokens instead, which you can restrict to specific repositories. Fine-grained personal access tokens also enable you to specify fine-grained permissions instead of broad scopes." So if we could add a fine-grained PAT as detailed above that has read/write access in the astropy-tutorials repo and the learn-astropy repo, I think the github actions workflow that builds and deploys the tutorials will then succeed. |
@jeffjennings , maybe you can play around with that over at the CCA org first because I cannot figure out how to do this for Astropy org. I can only create PAT from my own account, but from there, I cannot specific Astropy org repos. The docs I can find are not very clear on this. Please let me know if you have success. Thanks! |
I've made a token and DM'd you both in Slack. |
For future reference, the Dispatch Learn Astropy step in the build workflow was failing, probably because the token used there expired. It now passes after Kelle created a new fine-grained personal access token with write/read access to the I've set #606 to close this issue, as that solves the other problem Kelle mentions at the top - individual notebooks can have competing (version) dependencies. |
The website is currently not building successfully. It likely needs some significant attention in order to fix.
One big problem: notebooks have competing requirements.
Proposal: each notebook needs it’s own requirements.txt and environment. compile the notebooks. and then keep the HTML build. Possible tool =
nox
.The text was updated successfully, but these errors were encountered: