mirror of
https://github.com/zeek/zeek.git
synced 2025-10-01 22:28:20 +00:00
Use virtualenv in docs generation/builds
This commit is contained in:
parent
54d67c3322
commit
ef055ddb7c
1 changed files with 6 additions and 7 deletions
11
.github/workflows/generate-docs.yml
vendored
11
.github/workflows/generate-docs.yml
vendored
|
@ -70,12 +70,10 @@ jobs:
|
|||
sqlite3 \
|
||||
swig \
|
||||
zlib1g-dev
|
||||
# Many distros adhere to PEP 394's recommendation for `python` =
|
||||
# `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 --break-system-packages pre-commit
|
||||
python3 -m venv ci-docs-venv
|
||||
source ci-docs-venv/bin/activate
|
||||
pip3 install -r doc/requirements.txt
|
||||
pip3 install pre-commit
|
||||
|
||||
- name: ccache
|
||||
uses: hendrikmuhs/ccache-action@v1.2
|
||||
|
@ -112,6 +110,7 @@ jobs:
|
|||
|
||||
- name: Generate Docs
|
||||
run: |
|
||||
source ci-docs-venv/bin/activate
|
||||
git config --global user.name zeek-bot
|
||||
git config --global user.email info@zeek.org
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue