Skip to content

Commit

Permalink
Fix installation of Python packages in generate docs CI job
Browse files Browse the repository at this point in the history
This job uses `ubuntu-latest`, i.e., it will automatically use the
newest version of Ubuntu available. On current versions `pip install`
refuses to install packages into the system since this might break
system packages. Users are expected to explicitly opt into this
potential breakage by passing the `--break-system-packages` flag. This
is an acceptable workaround here since we do not distribute this setup,
and currently things appear to not break.
  • Loading branch information
bbannier committed Oct 15, 2024
1 parent 5f8d71c commit 366e300
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/generate-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Fetch Dependencies
run: sudo pip3 install -r requirements.txt
run: sudo pip3 install --break-system-packages -r requirements.txt
- name: Generate Docs
run: make SPHINXOPTS="-W --keep-going"

0 comments on commit 366e300

Please sign in to comment.