Skip to content

Commit

Permalink
docbuild: Run sphinx in venv, update python version
Browse files Browse the repository at this point in the history
Pip cannot upgrade pip on Ubuntu 24.04. Instead create and use a venv to run
the sphinx job. Also bump Python version to 3.12.

Signed-off-by: Maciej Grela <[email protected]>
  • Loading branch information
enkiusz committed Jan 14, 2025
1 parent 5bd63d5 commit dfead0c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/docbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,20 @@ jobs:
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.12
cache-dependency-path: matter/docs/requirements.txt
cache: pip
- name: Install base dependencies
working-directory: matter
run: |
sudo pip3 install -U pip
pip3 install -r docs/requirements.txt
mkdir venv
python3 -m venv venv
venv/bin/pip3 install -U pip
venv/bin/pip3 install -r docs/requirements.txt
- name: Build documentation
working-directory: matter/docs
run: |
source ../venv/bin/activate
mkdir -p _build/src
make html
touch _build/html/.nojekyll
Expand Down

0 comments on commit dfead0c

Please sign in to comment.