Skip to content

Commit bf77c12

Browse files
authored
Ci: Use sphinx from pip (#58)
Take recommendations from coderabbit to accoiunt: - #12
2 parents b2a2f3e + a5b5b12 commit bf77c12

2 files changed

Lines changed: 15 additions & 8 deletions

File tree

.github/workflows/docs-build.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,12 @@ jobs:
3636
echo "__version__ = '$version'" | tee trakt/__version__.py
3737
python -c "from trakt import __version__; print(__version__)"
3838
39-
# Install deps and build docs
40-
pip install -r requirements.txt
41-
sudo apt install sphinx
39+
# Install deps
40+
python -m pip install --upgrade pip
41+
python -m pip install -r requirements.txt
42+
python -m pip install 'sphinx>=7.1.0'
43+
44+
# Build docs
4245
make docs
4346
4447
# vim:ts=2:sw=2:et

.github/workflows/docs-upload.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,19 @@ jobs:
4444

4545
- name: Install dependencies and build docs
4646
run: |
47+
set -eux
48+
4749
# Setup version
4850
version=$(git describe --tags --abbrev=0)
49-
echo "__version__ = '$version'" > trakt/__version__.py
50-
cat trakt/__version__.py
51+
echo "__version__ = '$version'" | tee trakt/__version__.py
5152
python -c "from trakt import __version__; print(__version__)"
5253
53-
# Install deps and build docs
54-
pip install -r requirements.txt
55-
sudo apt install sphinx
54+
# Install deps
55+
python -m pip install --upgrade pip
56+
python -m pip install -r requirements.txt
57+
python -m pip install 'sphinx>=7.1.0'
58+
59+
# Build docs
5660
make docs
5761
5862
- name: Setup Pages

0 commit comments

Comments
 (0)