Skip to content

Commit

Permalink
Add venv when building API docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinnkunn committed Jan 16, 2025
1 parent b59f6d4 commit befd69b
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/API_doc_manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,21 @@ jobs:
- name: Build AISdb
run: |
python -m pip install --upgrade pip
python -m pip install maturin
maturin develop
python -m venv .venv
source .venv/bin/activate || exit 1
python -m pip install --upgrade pip || exit 1
python -m pip install maturin || exit 1
maturin develop || exit 1
- name: Install dependencies for API docs
run: |
source .venv/bin/activate || exit 1
python -m pip install --upgrade pip || exit 1
python -m pip install sphinx sphinx-rtd-theme matplotlib joblib || exit 1
- name: Build docs
run: |
source .venv/bin/activate || exit 1
ls
sphinx-apidoc --separate --force --implicit-namespaces --module-first -o docs/source/api aisdb aisdb/tests/* || exit 1
python -m sphinx -a -j auto -b=html docs/source docs/dist_sphinx || exit 1
Expand All @@ -79,4 +83,5 @@ jobs:
run: |
source .venv/bin/activate || exit 1
rm -rf gh-pages || exit 1
rm -rf docs/dist_sphinx
rm -rf docs/dist_sphinx
rm -rf .venv

0 comments on commit befd69b

Please sign in to comment.