-
Notifications
You must be signed in to change notification settings - Fork 3
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
sphinx builds locally but not via github action #102
Comments
Hi @ablot, thanks for raising this! When GitHub actions build the docs, they do it in a separate environment in which they install the requirements that are specific to the docs, i.e. those defined in To solve your issue, you'd have to add Please do let me know if this solution works for you. If yes, we will make sure to adjust the README or even include |
Indeed! Success ✅ |
@adamltyson what do you think about including |
I didn't know you could do this, but if it works, sounds good. Would be worth documenting it though in case it causes any unforeseen issues. |
Agreed. In theory, you don't need it if your are not building API docs, but I guess most people will be using it in this way. |
Describe the bug
A clear and concise description of what the bug is. If possible, please submit a Minimal Reproducible Example.
After starting my repository,
sphinx-build docs/source docs/build
works locally on my machine (in my conda environement) but when pushing I get import errors. For instance:It's not a typo or naming error, any import from my repo (image_tools) fails, as if sphinx was running from an environment before installing the package. Do I need to add steps to configure?
To Reproduce
Please enter full details of how to reproduce this bug.
Run the cookiecutter and push to main
Expected behaviour
A clear and concise description of what you expected to happen.
Successful build
The text was updated successfully, but these errors were encountered: