From 42762aa06edc9bbc71686f9d08ecd3fc49cfd80d Mon Sep 17 00:00:00 2001 From: Benjamin Bannier Date: Fri, 18 Oct 2024 08:49:40 +0200 Subject: [PATCH] Fix installation of Python packages in generate docs CI job again 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 https://github.com/actions/runner-images/issues/10636. --- .github/workflows/generate-docs.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/generate-docs.yml b/.github/workflows/generate-docs.yml index e991317071..555961dd01 100644 --- a/.github/workflows/generate-docs.yml +++ b/.github/workflows/generate-docs.yml @@ -17,7 +17,7 @@ jobs: permissions: contents: write # for Git to git push if: github.repository == 'zeek/zeek' - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: # We only perform a push if the action was triggered via a schedule @@ -71,7 +71,7 @@ jobs: # `python2` so this is a simple workaround until we drop Python 2 # support and explicitly use `python3` for all invocations. sudo ln -sf /usr/bin/python3 /usr/local/bin/python - sudo pip3 install --break-system-packages -r doc/requirements.txt + sudo pip3 install -r doc/requirements.txt - name: ccache uses: hendrikmuhs/ccache-action@v1.2