Skip to content

Commit 0285e62

Browse files
committed
Refactor Sphinx installation in build workflow to use the Doc virtual environment and add verification step
1 parent e613ae0 commit 0285e62

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/build-and-deploy.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,21 @@ jobs:
3939
ref: rtl-support
4040
path: sphinx-rtl
4141

42-
- name: Install custom Sphinx
43-
run: |
44-
cd sphinx-rtl
45-
pip install -e .
46-
4742
- name: Setup virtual environment
4843
run: make venv
4944
working-directory: ./Doc
5045

46+
- name: Install custom Sphinx in Doc venv
47+
run: |
48+
cd sphinx-rtl
49+
../Doc/venv/bin/pip install -e .
50+
51+
- name: Verify custom Sphinx installation
52+
run: |
53+
../Doc/venv/bin/sphinx-build --version
54+
echo "Sphinx location:"
55+
../Doc/venv/bin/python -c "import sphinx; print(sphinx.__file__)"
56+
5157
- name: Checkout translation files
5258
uses: actions/checkout@v4
5359
with:

0 commit comments

Comments
 (0)