Skip to content

Commit

Permalink
Fix installation of Python packages in generate docs CI job again
Browse files Browse the repository at this point in the history
This pins the generate-docs GH workflow to run on a fixed version of
ubuntu so we get defined semantics of pip install wrt system packages.
We were previously using the ubuntu-latest image and GH has been
switching this from ubuntu-22.04 to 24.04 and back again, also see
actions/runner-images#10636.
  • Loading branch information
bbannier committed Oct 18, 2024
1 parent a0bb802 commit bd30042
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/generate-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,22 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
os:
- 'ubuntu-22.04'
- 'macos-latest'
python-version:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Fetch Dependencies
run: sudo pip3 install --break-system-packages -r requirements.txt
run: pip3 install -r requirements.txt
- name: Generate Docs
run: make SPHINXOPTS="-W --keep-going"

0 comments on commit bd30042

Please sign in to comment.