-
-
Notifications
You must be signed in to change notification settings - Fork 11.1k
MAINT: Use python
shim and clean up CI script calls
#29324
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,7 +52,7 @@ jobs: | |
- run: | ||
name: build NumPy | ||
command: | | ||
python3.11 -m venv venv | ||
python -m venv venv | ||
. venv/bin/activate | ||
pip install --progress-bar=off -r requirements/test_requirements.txt \ | ||
-r requirements/build_requirements.txt \ | ||
|
@@ -69,7 +69,7 @@ jobs: | |
# Don't use -q, show warning summary" | ||
SPHINXOPTS="-W -n" spin docs | ||
if [[ $(find doc/build/html -type f | wc -l) -lt 1000 ]]; then | ||
echo "doc build failed: doc/build/html is empty" | ||
echo "doc build failed: doc/build/html is empty" >&2 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is wrong with the way this is? Why force stderr? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It might be helpful if the logs are being streamed to any observability tool where it is possible to monitor it easily based on |
||
exit -1 | ||
fi | ||
|
||
|
@@ -97,8 +97,8 @@ jobs: | |
# - validates ReST blocks (via validate_rst_syntax) | ||
# - checks that all of a module's `__all__` is reflected in the | ||
# module-level docstring autosummary | ||
echo calling python3 tools/refguide_check.py -v | ||
python3 tools/refguide_check.py -v | ||
echo "calling ./tools/refguide_check.py -v" | ||
./tools/refguide_check.py -v | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If anything, I would prefer this specifically uses python 3.11 like above There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. They all are symlinked to same python binary anyway configured in |
||
|
||
- persist_to_workspace: | ||
root: ~/repo | ||
|
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 would prefer to leave this as is. We secifically must build the dicumentation with python 3.11 since we have distutils extensions. I wouldn’t want the version to change out from under us without it causing an obvious error