Skip to content

Commit f70bca4

Browse files
committed
dev: pin python version for sphinx
1 parent 118c2c4 commit f70bca4

File tree

2 files changed

+26
-8
lines changed

2 files changed

+26
-8
lines changed

.github/workflows/deploy-userguide-latest.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,20 @@ jobs:
3333
php-version: '8.1'
3434
coverage: none
3535

36-
# Build the latest User Guide
37-
- name: Build with Sphinx
38-
uses: ammaraskar/sphinx-action@0.4
36+
- name: Setup Python
37+
uses: actions/setup-python@v5
3938
with:
40-
docs-folder: user_guide_src/
39+
python-version: '3.12'
40+
41+
- name: Install Sphinx
42+
run: |
43+
python -m pip install --upgrade pip
44+
pip install -r user_guide_src/requirements.txt
45+
46+
# Build the latest User Guide
47+
- name: Build Docs with Sphinx
48+
run: make html
49+
working-directory: user_guide_src
4150

4251
- name: Add "Edit this page" links
4352
run: |

.github/workflows/test-userguide.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,19 @@ jobs:
2626
- name: Checkout
2727
uses: actions/checkout@v4
2828

29+
- name: Setup Python
30+
uses: actions/setup-python@v5
31+
with:
32+
python-version: '3.12'
33+
34+
- name: Install Sphinx
35+
run: |
36+
python -m pip install --upgrade pip
37+
pip install -r user_guide_src/requirements.txt
38+
2939
- name: Detect usage of tabs in RST files
3040
run: php utils/check_tabs_in_rst.php
3141

32-
- uses: ammaraskar/sphinx-action@0.4
33-
with:
34-
docs-folder: user_guide_src
35-
build-command: 'make html SPHINXOPTS="-W --keep-going -w /tmp/sphinx-log"'
42+
- name: Build Docs with Sphinx
43+
run: make html SPHINXOPTS="-W --keep-going -w /tmp/sphinx-log"
44+
working-directory: user_guide_src

0 commit comments

Comments
 (0)