-
Notifications
You must be signed in to change notification settings - Fork 17
Make CI dependency installation order match between workflows #557
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
Updated installation command to remove 'dev' dependencies.
| if [ -f docs/requirements.txt ]; then pip install -r docs/requirements.txt; fi | ||
| pip install . | ||
| uv pip install --system -e . | ||
| if [ -f requirements.txt ]; then uv pip install --system -r requirements.txt; fi |
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.
Keep both the docs/requirements and requirements. All of the sphinx dependencies are currently in the docs/requirements file.
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.
Oops--copy and paste error, on it!
|
And just remembered - you also need to tell readthedocs to look at all of the right requirements files. That is set up in |
Add conditional installation of documentation requirements.
Change Description
Updating the dependency installation order in the build documentation workflow to match the order in the testing workflow. (This is also the order in the pre-commit, smoke test, and testing windows workflows).
This allows us to (temporarily) update a package in our requirements.txt file to point to a branch (eg, we are making concurrent changes to hats and hats-import like so). At the moment, the documentation workflow will just override the specified version and give our PR a big ol' ❌ :(
Also, this adds uv to match the other workflows.
Checklist
lincc-frameworks/python-project-templaterepo and not a downstream one instead.