-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: pin python version for sphinx (#9224)
* dev: pin python version for sphinx * dev: pin python for deploy workflow
- Loading branch information
Showing
3 changed files
with
33 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,11 +33,20 @@ jobs: | |
php-version: '8.1' | ||
coverage: none | ||
|
||
# Build the latest User Guide | ||
- name: Build with Sphinx | ||
uses: ammaraskar/[email protected] | ||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
docs-folder: user_guide_src/ | ||
python-version: '3.12' | ||
|
||
- name: Install Sphinx | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r user_guide_src/requirements.txt | ||
# Build the latest User Guide | ||
- name: Build Docs with Sphinx | ||
run: make html | ||
working-directory: user_guide_src | ||
|
||
- name: Add "Edit this page" links | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,10 +26,19 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
|
||
- name: Install Sphinx | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r user_guide_src/requirements.txt | ||
- name: Detect usage of tabs in RST files | ||
run: php utils/check_tabs_in_rst.php | ||
|
||
- uses: ammaraskar/[email protected] | ||
with: | ||
docs-folder: user_guide_src | ||
build-command: 'make html SPHINXOPTS="-W --keep-going -w /tmp/sphinx-log"' | ||
- name: Build Docs with Sphinx | ||
run: make html SPHINXOPTS="-W --keep-going -w /tmp/sphinx-log" | ||
working-directory: user_guide_src |